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

TLS error #68

Open
dmytronasyrov opened this issue Apr 2, 2017 · 6 comments
Open

TLS error #68

dmytronasyrov opened this issue Apr 2, 2017 · 6 comments

Comments

@dmytronasyrov
Copy link

dmytronasyrov commented Apr 2, 2017

There is a new problem appeared today after I have updated deps. Google says possibly it's tls version error. Any idea how to fix it?

** (Mix) Could not start application pigeon: Pigeon.start(:normal, []) returned an error: shutdown: failed to start child: :default
    ** (EXIT) bad return value: {:error, {:tls_alert, 'handshake failure'}}
@hpopp
Copy link
Member

hpopp commented Apr 2, 2017

Generally these kinds of errors deal with the cert itself. Have you made sure your push certificate hasn't expired?

@dmytronasyrov
Copy link
Author

openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert cert.pem -key key.pem
says both files are ok. Both chatterbox and kadabra return handshake failure. I have already regenerated certificates 3 times. Tried in dev and prod modes on 443 and 2197. No luck

@hpopp
Copy link
Member

hpopp commented Apr 2, 2017

From cursory research it might be something similar to edgurgel/httpoison#164. I may need to force the TLS version on kadabra connections.

@dmytronasyrov
Copy link
Author

dmytronasyrov commented Apr 2, 2017

Now I'm sure it's not related to my certificate itself. I just sent a push notification to my iphone via curl.
TLS version should be 1.2

@dmytronasyrov
Copy link
Author

This is not a pigeon's or kadabra bug. How to fix:
benoitc/hackney#387

@motephyr
Copy link

hi, i meet the issue, and it's is from beam 20.3.
https://bugs.erlang.org/browse/ERL-599
someone who meet the issue could try to use beam 20.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants