Class: Chef::HTTP::APISSLPolicy
- Inherits:
-
DefaultSSLPolicy
- Object
- DefaultSSLPolicy
- Chef::HTTP::APISSLPolicy
- Defined in:
- lib/chef/http/ssl_policies.rb
Instance Attribute Summary
Attributes inherited from DefaultSSLPolicy
Instance Method Summary collapse
Methods inherited from DefaultSSLPolicy
#apply, apply_to, #config, #initialize, #set_ca_store, #set_client_credentials, #set_custom_certs
Constructor Details
This class inherits a constructor from Chef::HTTP::DefaultSSLPolicy
Instance Method Details
#set_verify_mode ⇒ Object
142 143 144 145 146 147 148 |
# File 'lib/chef/http/ssl_policies.rb', line 142 def set_verify_mode if config[:ssl_verify_mode] == :verify_peer || config[:verify_api_cert] http_client.verify_mode = OpenSSL::SSL::VERIFY_PEER elsif config[:ssl_verify_mode] == :verify_none http_client.verify_mode = OpenSSL::SSL::VERIFY_NONE end end |