From e216b9a1d25d64ad166fec41c28b511467039194 Mon Sep 17 00:00:00 2001 From: Simon Thulbourn Date: Tue, 21 May 2013 11:41:15 +0100 Subject: [PATCH] adds param for client certs adds an option to the command parser for client certicates --- plugins/commands/box/command/add.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/commands/box/command/add.rb b/plugins/commands/box/command/add.rb index 7f6829c7d..ebed09143 100644 --- a/plugins/commands/box/command/add.rb +++ b/plugins/commands/box/command/add.rb @@ -19,6 +19,11 @@ module VagrantPlugins options[:insecure] = i end + o.on("--cert certfile", String, + "The client SSL cert") do |c| + options[:client_cert] = c + end + o.on("--provider provider", String, "The provider that backs the box.") do |p| options[:provider] = p @@ -40,6 +45,7 @@ module VagrantPlugins :box_url => argv[1], :box_force => options[:force], :box_download_insecure => options[:insecure], + :box_client_cert => options[:client_cert] }) # Success, exit status 0