From 63dbda8de166bcefe28bb073fc7b3b247be8d836 Mon Sep 17 00:00:00 2001 From: must-not-code Date: Wed, 15 Jul 2020 16:56:05 +0300 Subject: [PATCH] Updates TLS version to 1.2 --- lib/sailthru/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sailthru/client.rb b/lib/sailthru/client.rb index 5290cf2..2a1d5d9 100644 --- a/lib/sailthru/client.rb +++ b/lib/sailthru/client.rb @@ -880,7 +880,7 @@ def http_request(action, data, method = 'POST', binary_key = nil) http = Net::HTTP::Proxy(@proxy_host, @proxy_port).new(_uri.host, _uri.port) if _uri.scheme == 'https' - http.ssl_version = :TLSv1 + http.ssl_version = :TLSv1_2 http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE if @verify_ssl != true # some openSSL client doesn't work without doing this http.ssl_timeout = @opts[:http_ssl_timeout] || 5