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
13 14 15 16 17 18 |
# File 'lib/puppetdb/client.rb', line 13 def attach_ssl_certificates(http, ) http.cert = OpenSSL::X509::Certificate.new(File.read([:pem]['cert'])) http.key = OpenSSL::PKey::RSA.new(File.read([:pem]['key'])) http.ca_file = [:pem]['ca_file'] http.verify_mode = OpenSSL::SSL::VERIFY_PEER end |