diff options
author | Snack Bandit <snackbandit@users.noreply.github.com> | 2013-08-27 14:34:28 +0100 |
---|---|---|
committer | Snack Bandit <snackbandit@users.noreply.github.com> | 2013-08-27 14:34:28 +0100 |
commit | 4706812843b87094b7a30797fd4f63f6116223d1 (patch) | |
tree | 8f5e1f6033b4c4458aac52668a268fee129dac41 | |
parent | 0afeb9f7a8abffeabb2d8960aff0853a23472330 (diff) | |
download | bundler-4706812843b87094b7a30797fd4f63f6116223d1.tar.gz |
Initial adding of X.509 client certs
-rw-r--r-- | lib/bundler/fetcher.rb | 4 |
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) |