This repository was archived by the owner on Aug 29, 2024. It is now read-only.
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. |
Answered by
postmodern
Jul 12, 2024
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 |
8 replies
|
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 |
1 reply
Answer selected by
postmodern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, after passing in a custom
OpenSSL::SSL::SSLContextwithverify_modeset toOpenSSL::SSL::VERIFY_NONE, it appears that I'm actually hitting some kind of odd SSL/TLS handshake failure that also happens when usingSSLSocketor evencurl.