Class: Chef::HTTP::VerifyPeerSSLPolicy

Inherits:
DefaultSSLPolicy show all
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

#http_client

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_modeObject



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