0
votes

source: www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

Terminal Command:

Initiums-iMac:Desktop initium$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem

Terminal Response:

CONNECTED(00000003) depth=1 /C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C

verify error:num=20:unable to get local issuer certificate
verify return:0

3122:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:/SourceCache/OpenSSL098/OpenSSL098-47.2/src/ssl/s3_pkt.c:1106:SSL alert number 40

3122:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:/SourceCache/OpenSSL098/OpenSSL098-47.2/src/ssl/s23_lib.c:182:

1

1 Answers

0
votes

Following the tutorial www.raywenderlich.com/32960, I think I faced the same issue... almost.

Anyways, I think it was because I had goofed up with the .p12 file specifically.

Did you export the correct private key from inside "Keychain Access > Keys"?
This part comes under "Generating the Certificate Signing Request (CSR)" where you have to export the private key as a p12 file.

Delete all the unnecessary certificates and keys, start from scratch and closely follow the tutorial.