How to tell Async::IO::SSLEndpoint#connect
to not verify the certificate?
#84
-
I'm trying to connect to an SSL port and obtain the The documentation for Async::IO::Endpoint.ssl doesn't explain how to pass in additional OpenSSL options. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I'm also unclear where/how async-io/lib/async/io/ssl_endpoint.rb Lines 41 to 46 in 6b5dc26 |
Beta Was this translation helpful? Give feedback.
-
Hmm, after passing in a custom context = OpenSSL::SSL::SSLContext.new
context.verify_mode = OpenSSL::SSL::VERIFY_NONE
host = '172.66.40.156'
port = 8443
endpoint = Async::IO::Endpoint.ssl(address,port, ssl_context: context)
endpoint.connect do |socket|
# ...
end
|
Beta Was this translation helpful? Give feedback.
Hmm, after passing in a custom
OpenSSL::SSL::SSLContext
withverify_mode
set toOpenSSL::SSL::VERIFY_NONE
, it appears that I'm actually hitting some kind of odd SSL/TLS handshake failure that also happens when usingSSLSocket
or evencurl
.