Handshake Failure 40

4,547 views
Skip to first unread message

John Vanderbeck

unread,
Oct 8, 2014, 7:05:57 PM10/8/14
to node...@googlegroups.com
So I'm slogging my way through trying to figure out the "Security" side of this, because it really isn't my thing.

Right now I'm just using test code on my Mac trying to get a test notification sent through.

I'm getting an SSL Handshake failure: Error: 140735184999184:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s3_pkt.c:1256:SSL alert number 40

Google isn't being very helpful searching around, but the best I can determine is it may be a problem of incorrect cyphers or something magical like that?  Is there maybe something else I should be installing on my Mac to make this work?

John Vanderbeck

unread,
Oct 8, 2014, 9:25:54 PM10/8/14
to node...@googlegroups.com
I'm also getting the exact same error when I run this on my webhost :(

John Vanderbeck

unread,
Oct 8, 2014, 10:40:54 PM10/8/14
to node...@googlegroups.com
Ok posting this for future referencein case anyone else has this problem.

Turns out I made a mistake somewhere along the line of keys and certs, and I had a mismatch.  I found this command that you can use to test your key/cert and it gives more details on what is wrong if it fails:
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert cert.pem -key key.pem

That commands told me I had a mismatch. I went through the whole process again and now it works.
Reply all
Reply to author
Forward
0 new messages