From c495fb7c5c72f8f3d77280dd085bf62d32553cc5 Mon Sep 17 00:00:00 2001 From: Simon Thulbourn Date: Tue, 21 May 2013 11:39:43 +0100 Subject: [PATCH] adds options for client certs to downloader class Adds :client_cert to the env array and then passes it into the curl options array --- lib/vagrant/util/downloader.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant/util/downloader.rb b/lib/vagrant/util/downloader.rb index ccf483b94..38453c404 100644 --- a/lib/vagrant/util/downloader.rb +++ b/lib/vagrant/util/downloader.rb @@ -18,6 +18,7 @@ module Vagrant options ||= {} @insecure = options[:insecure] @ui = options[:ui] + @client_cert = options[:client_cert] end # This executes the actual download, downloading the source file @@ -36,6 +37,7 @@ module Vagrant ] options << "--insecure" if @insecure + options << "--cert" << @client_cert if @client_cert options << @source # Specify some options for the subprocess