knife solo でSSL周りの警告が出た時の対処方

SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle

To fix this issue add an entry like this to your configuration file:

  # Verify all HTTPS connections (recommended)
  ssl_verify_mode :verify_peer

  # OR, Verify only connections to chef-server
  verify_api_cert true

chefのバージョン11.12からknife ssl checkが導入されたとかで上記警告が出るようになります。


gem update knife


ssl_verify_mode  :verify_peer