Skip to content

Commit 5cfd814

Browse files
committed
(BOLT-686) Use TLS v1.2
All Orchestrator releases support TLS v1.2. Some are now being configured to disable TLS v1. Update the client to always use TLS v1.2 so it works with servers that have disabled earlier versions of TLS.
1 parent 42ff3fa commit 5cfd814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/orchestrator_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def make_uri(path)
2424
def create_http(uri)
2525
http = Net::HTTP.new(uri.host, uri.port)
2626
http.use_ssl = true
27-
http.ssl_version = :TLSv1
27+
http.ssl_version = :TLSv1_2
2828
http.ca_file = config['cacert']
2929
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
3030
http

0 commit comments

Comments
 (0)