Skip to content

Commit

Permalink
Updates TLS version to 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
must-not-code committed Jul 15, 2020
1 parent 978deed commit 63dbda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sailthru/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63dbda8

Please sign in to comment.