summaryrefslogtreecommitdiff
path: root/lib/bundler/fetcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/fetcher.rb')
-rw-r--r--lib/bundler/fetcher.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb
index 78588c7adc..4f16c3f509 100644
--- a/lib/bundler/fetcher.rb
+++ b/lib/bundler/fetcher.rb
@@ -75,6 +75,10 @@ module Bundler
@connection.verify_mode = (Bundler.settings[:ssl_verify_mode] ||
OpenSSL::SSL::VERIFY_PEER)
@connection.cert_store = bundler_cert_store
+ @connection.ca_file = Bundler.settings[:ssl_ca_cert]
+ if Bundler.settings[:ssl_ca_cert]
+ @connection.cert = Bundler.settings[:ssl_client_cert]
+ if Bundler.settings[:ssl_client_cert]
else
raise SSLError if @remote_uri.scheme == "https"
@connection = Net::HTTP.new(@remote_uri.host, @remote_uri.port)