lib/vagrant-vcloud/driver/base.rb in vagrant-vcloud-0.4.3 vs lib/vagrant-vcloud/driver/base.rb in vagrant-vcloud-0.4.4
- old
+ new
@@ -286,10 +286,13 @@
# response as parsed XML + headers using HTTPClient.
def send_request(params, payload = nil, content_type = nil)
# Create a new HTTP client
clnt = HTTPClient.new
+ # Set SSL proto to TLSv1
+ clnt.ssl_config.ssl_version = :TLSv1
+
# Disable SSL cert verification
clnt.ssl_config.verify_mode = (OpenSSL::SSL::VERIFY_NONE)
# Suppress SSL depth message
clnt.ssl_config.verify_callback = proc { |ok, ctx|; true }
@@ -398,9 +401,12 @@
else
puts progressbar_title
end
# Create a new HTTP client
clnt = HTTPClient.new
+
+ # Set SSL proto to TLSv1
+ clnt.ssl_config.ssl_version = :TLSv1
# Disable SSL cert verification
clnt.ssl_config.verify_mode = (OpenSSL::SSL::VERIFY_NONE)
# Suppress SSL depth message