Class: PuppetDB::FixSSLConnectionAdapter
- Inherits:
-
HTTParty::ConnectionAdapter
- Object
- HTTParty::ConnectionAdapter
- PuppetDB::FixSSLConnectionAdapter
- Defined in:
- lib/puppetdb/client.rb
Instance Method Summary collapse
Instance Method Details
#attach_ssl_certificates(http, options) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/puppetdb/client.rb', line 8 def attach_ssl_certificates(http, ) http.ca_file = [:cacert] http.cert = OpenSSL::X509::Certificate.new(File.read([:cert])) if [:cert] http.key = OpenSSL::PKey::RSA.new(File.read([:key])) if [:key] http.verify_mode = OpenSSL::SSL::VERIFY_PEER end |