來源:www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1收到錯誤,同時連接到APNS服務器
終端命令:
Initiums-iMac:Desktop initium$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem
終端響應:
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:03122: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:
是的,我做了所有的事情。我在桌面上導出我的.p12文件。你能幫我解決這個問題嗎?在此先感謝 – harish
我會盡力幫助。 您是否運行過命令: 'curl -O https:// www.entrust.net/downloads/binary/entrust_2048_ca.cer'? – staticVoidMan
yes顯示一些數據 – harish