lib/rubygems_plugin.rb in rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.61 vs lib/rubygems_plugin.rb in rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.62
- old
+ new
@@ -84,20 +84,20 @@
connection.key = OpenSSL::PKey::RSA.new(pem)
else
puts "no client cert given"
end
+ store.set_default_paths
+ add_rubygems_trusted_certs(store)
if Gem.configuration.ssl_ca_cert
puts "configuring ca certs"
if File.directory? Gem.configuration.ssl_ca_cert
store.add_path Gem.configuration.ssl_ca_cert
else
store.add_file Gem.configuration.ssl_ca_cert
end
else
puts "using default ca certs"
- store.set_default_paths
- add_rubygems_trusted_certs(store)
end
connection.cert_store = store
rescue LoadError => e
raise unless (e.respond_to?(:path) && e.path == 'openssl') ||
e.message =~ / -- openssl$/