nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

SSL_connect returned=1 errno=0 state=SSLv3 read finished A: tlsv1 alert internal error #129

Closed bennettl closed 7 years ago

bennettl commented 7 years ago

When trying to send the push notification I'm getting this. I made sure the device token and .pem file are valid.

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read finished A: tlsv1 alert internal error
    from /Library/Ruby/Gems/2.0.0/gems/houston-2.2.3/lib/houston/connection.rb:44:in `connect'
    from /Library/Ruby/Gems/2.0.0/gems/houston-2.2.3/lib/houston/connection.rb:44:in `open'
    from /Library/Ruby/Gems/2.0.0/gems/houston-2.2.3/lib/houston/connection.rb:19:in `open'
    from /Library/Ruby/Gems/2.0.0/gems/houston-2.2.3/lib/houston/client.rb:40:in `push'
elementsrtyte commented 7 years ago

Just started receiving this error as well :(

bennettl commented 7 years ago

I resolved the issue myself, turns out I shouldn't export both the cert and the private key into .p12, only the cert.

1. Click the disclosure arrow next to your certificate in Keychain Access and select the certificate and the key.
2. Right click and choose Export 2 items….
3. Choose the p12 format from the drop down and name it cert.p12.

For instruction #2, I only exported 1 item.