Class: Chef::HTTP::VerifyPeerSSLPolicy
- Inherits:
-
DefaultSSLPolicy
- Object
- DefaultSSLPolicy
- Chef::HTTP::VerifyPeerSSLPolicy
- Defined in:
- lib/chef/http/ssl_policies.rb
Overview
This policy is used when we want to explicitly turn on verification
for a specific request regardless of the API Policy. For example, when
doing a remote_file
where the user specified verify_mode :verify_peer
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
155 156 157 |
# File 'lib/chef/http/ssl_policies.rb', line 155 def set_verify_mode http_client.verify_mode = OpenSSL::SSL::VERIFY_PEER end |