How do I fix apple push notification error?
-
I used this link"http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1" and when I reached this step"php simplepush.php" , the php error occured like that in terminal... PHP Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /Users/Sites/simplepush.php on line 21 Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /Users/Sites/simplepush.php on line 21 PHP Warning: stream_socket_client(): Failed to enable crypto in /Users/Sites/simplepush.php on line 21 Warning: stream_socket_client(): Failed to enable crypto in /Users/Sites/simplepush.php on line 21 PHP Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Users/Sites/simplepush.php on line 21 Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Users/Sites/simplepush.php on line 21 Failed to connect: 0
-
Answer:
Check the "Problem connecting to Push Notification Service" section in this same blog. It lists all the possible reasons why you could be getting this error and the possible solutions. One possibility here could be that there is a firewall blocking the ports used by APNs. Make sure you http://developer.apple.com/library/ios/#technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG41. Another possibility here could be that youâve gotten the private key and CSR file wrong. While updating this tutorial I myself made this mistake and fixed it using the correct private key. Remember that each app id has a unique CSR and private key combination. Unable to get local issuer certificate. This error means that the certificate from the server could not be verified. To fix this you need to download the Entrust CA root certificate.
Lata Sadhwani at Quora Visit the source
Other answers
The main problem here can be regarding the PEM file. Double check that the PEM file use is correct. Run the following command. When you get the certificate for your application from Apple, export the keys as .p12 files. Then perform the steps as in Appleâs documentation and in the last stage, convert the .p12 file to a PEM file.openssl pkcs12 -in keyname.p12 -out keyname.pem -nodes -clcerts
Ashif Shereef
I push notify from server centos 6.5 but error: Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown in /home/domains/localhost/public_html/notify/push.php on line 47 SSL has turn on but it not working
CÆ°Æ¡ng Phạm Äình
Related Q & A:
- How can I fix parser Error in ASP.NET?Best solution by parse.com
- How do I fix the "Specified path is too long" error?Best solution by itcsupport.wordpress.com
- Why am I receiving a malformed text data error and how do I fix it?Best solution by Yahoo! Answers
- How do i fix the combat arms error?Best solution by Yahoo! Answers
- How do I fix this error I have on MSN? "Windows Live Communications Platform has stopped working?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.