Puppet: System Administration Automated

Support

Ticket #409: puppet_ca-bundle.patch

File puppet_ca-bundle.patch, 1.2 kB (added by puppet, 2 years ago)

CA Bundle Patch

  • lib/puppet/networkclient.rb

    old new  
    110110            def ca_file=(cafile) 
    111111                @http.ca_file = cafile 
    112112                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) 
    117114                store.purpose = OpenSSL::X509::PURPOSE_SSL_CLIENT 
    118115                @http.cert_store = store 
    119116            end 
  • lib/puppet/server.rb

    old new  
    6060                store = OpenSSL::X509::Store.new 
    6161                store.purpose = OpenSSL::X509::PURPOSE_ANY 
    6262                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
    6464                store.add_crl(crl) 
    6565                return store 
    6666            end