diff options
author | Tim Smith <tsmith@chef.io> | 2020-05-27 09:53:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 09:53:15 -0700 |
commit | eb2598d5d2acdf8e9960062c75e1d26a58739e33 (patch) | |
tree | aeddf59624f4fd6cec8551f32a0e1752b14a278b /lib/chef/http.rb | |
parent | 33765e6be755c1289df6cb75a3cc167d64f993ea (diff) | |
parent | 28c548500f5a2de3babfd05fbd27b2e9a76ca266 (diff) | |
download | chef-eb2598d5d2acdf8e9960062c75e1d26a58739e33.tar.gz |
Merge pull request #9833 from jaymzh/remote_file_ssl
Add ssl_verify option for remote_file
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r-- | lib/chef/http.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb index d31d4d3027..d34718d048 100644 --- a/lib/chef/http.rb +++ b/lib/chef/http.rb @@ -304,7 +304,8 @@ class Chef SocketlessChefZeroClient.new(base_url) else - BasicClient.new(base_url, ssl_policy: Chef::HTTP::APISSLPolicy, keepalives: keepalives) + ssl_policy = @options[:ssl_verify_mode] || Chef::HTTP::APISSLPolicy + BasicClient.new(base_url, ssl_policy: ssl_policy, keepalives: keepalives) end end |