Class: Chef::HTTP::VerifyNoneSSLPolicy

Inherits:
DefaultSSLPolicy show all
Defined in:
lib/chef/http/ssl_policies.rb

Overview

This policy is used when we want to explicitly turn off verification for a specific request regardless of the API Policy. For example, when doing a remote_file where the user specified verify_mode :verify_none

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



164
165
166
# File 'lib/chef/http/ssl_policies.rb', line 164

def set_verify_mode
  http_client.verify_mode = OpenSSL::SSL::VERIFY_NONE
end