summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-09-05 14:29:27 -0700
committerClaire McQuin <claire@getchef.com>2014-09-15 14:58:39 -0700
commitd1dee0e0cde186894ab024564938f0ad4eda41cf (patch)
tree38ecb610615334dbf13d16056bc0f4b344ccaf61
parent49582c3db4e3b54674ecfb57fe82157720350274 (diff)
downloadchef-d1dee0e0cde186894ab024564938f0ad4eda41cf.tar.gz
change default of :ssl_verify_mode to :verify_peer
-rw-r--r--lib/chef/config.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index 1963a95aab..74607e8368 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -331,10 +331,11 @@ class Chef
default :ssl_client_cert, nil
default :ssl_client_key, nil
- # Whether or not to verify the SSL cert for all HTTPS requests. If set to
- # :verify_peer, all HTTPS requests will be validated regardless of other
- # SSL verification settings.
- default :ssl_verify_mode, :verify_none
+ # Whether or not to verify the SSL cert for all HTTPS requests. When set to
+ # :verify_peer (default), all HTTPS requests will be validated regardless of other
+ # SSL verification settings. When set to :verify_none no HTTPS requests will
+ # be validated.
+ default :ssl_verify_mode, :verify_peer
# Whether or not to verify the SSL cert for HTTPS requests to the Chef
# server API. If set to `true`, the server's cert will be validated