How to fix error LNK2019?

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

Was this solution helpful to you?

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

Just Added Q & A:

Find solution

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.