Ticket #409: puppet_ca-bundle.patch
| File puppet_ca-bundle.patch, 1.2 kB (added by puppet, 2 years ago) |
|---|
-
lib/puppet/networkclient.rb
old new 110 110 def ca_file=(cafile) 111 111 @http.ca_file = cafile 112 112 store = OpenSSL::X509::Store.new 113 cacert = OpenSSL::X509::Certificate.new( 114 File.read(cafile) 115 ) 116 store.add_cert(cacert) 113 store.add_file(cafile) 117 114 store.purpose = OpenSSL::X509::PURPOSE_SSL_CLIENT 118 115 @http.cert_store = store 119 116 end -
lib/puppet/server.rb
old new 60 60 store = OpenSSL::X509::Store.new 61 61 store.purpose = OpenSSL::X509::PURPOSE_ANY 62 62 store.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL|OpenSSL::X509::V_FLAG_CRL_CHECK 63 store.add_ cert(@cacert)63 store.add_file(@cacertfile) 64 64 store.add_crl(crl) 65 65 return store 66 66 end