summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/config.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index e989c39d9a..a797f0a542 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -365,6 +365,7 @@ class Chef
# server API. If set to `true`, the server's cert will be validated
# regardless of the :ssl_verify_mode setting. This is set to `true` when
# running in local-mode.
+ # NOTE: This is a workaround until verify_peer is enabled by default.
default(:verify_api_cert) { Chef::Config.local_mode }
# Path to the default CA bundle files.