Class: OpenSSL::X509::Store
Instance Method Summary collapse
Instance Method Details
#__original_set_default_paths ⇒ Object
78 |
# File 'lib/puppet/util/monkey_patches.rb', line 78 alias __original_set_default_paths set_default_paths |
#set_default_paths ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/puppet/util/monkey_patches.rb', line 79 def set_default_paths # This can be removed once openssl integrates with windows # cert store, see https://rt.openssl.org/Ticket/Display.html?id=2158 unless @puppet_certs_loaded @puppet_certs_loaded = true Puppet::Util::Windows::RootCerts.instance.to_a.uniq(&:to_der).each do |x509| add_cert(x509) rescue OpenSSL::X509::StoreError warn "Failed to add #{x509.subject.to_utf8}" end end __original_set_default_paths end |