From 4706812843b87094b7a30797fd4f63f6116223d1 Mon Sep 17 00:00:00 2001 From: Snack Bandit Date: Tue, 27 Aug 2013 14:34:28 +0100 Subject: Initial adding of X.509 client certs --- lib/bundler/fetcher.rb | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.1