Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set hostname for ssl_client for server that needs SNI #41

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@zunda
Copy link

commented Feb 12, 2019

This prevents the error

lib/mastodon/streaming/connection.rb:35:in `connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: sslv3 alert handshake failure (OpenSSL::SSL::SSLError)

for Mastodon::Streaming::Client.new(base_url: "https://#{server}" bearer_token: token).user(){|toot| ... } on a server that requires SNI to establish TLS connection.

Set hostname for ssl_client for server that needs SNI
This prevents the error
```
lib/mastodon/streaming/connection.rb:35:in `connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: sslv3 alert handshake failure (OpenSSL::SSL::SSLError)
```
for `Mastodon::Streaming::Client.new(base_url: "https://#{server}" bearer_token: token).user(){|toot| ... }` on a server that requires SNI to establish TLS connection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.