I get these error messages from my PHP code used to send a message to APNS ... Has anyone encountered the same problem?
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines: SSL3_READ_BYTES:sslv3 alert handshake failure in /Library/WebServer/Documents/anish/apns/2.php on line 8 Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /Library/WebServer/Documents/anish/apns/2.php on line 8 Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Library/WebServer /Documents/anish/apns/2.php on line 8 Failed to connect: 0 Warning: fclose(): supplied argument is not a valid stream resource in /Library/WebServer/Documents/anish/apns/2.php on line 20*
It also seems like it's always impossible to connect to gateway.sandbox.push.apple.com. I even tried with PushMeBaby, and he also could not connect to gateway.sandbox.push.apple.com
Anish source share