We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4b413 commit 1493455Copy full SHA for 1493455
spec/octocatalog-diff/support/httparty/ssl_test_server.rb
@@ -44,6 +44,10 @@ def self.thread_main(tmpfile, options)
44
ctx = OpenSSL::SSL::SSLContext.new
45
ctx.cert = OpenSSL::X509::Certificate.new(options[:cert])
46
ctx.key = OpenSSL::PKey::RSA.new(options[:rsa_key])
47
+ if Gem::Version.new(OpenSSL::VERSION) >= Gem::Version.new('2.1.0')
48
+ ctx.min_version = OpenSSL::SSL::SSL3_VERSION
49
+ ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION
50
+ end
51
ctx.verify_mode = if options[:client_verify]
52
OpenSSL::SSL::VERIFY_PEER | OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
53
else
0 commit comments