Thanks for reading my question. I'm trying to send push notification from PHP (installed on Amazon EC2), code works on localhost but when move to EC2, it give error:
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 ... on line 24, referer: ...
PHP Warning: stream_socket_client(): Failed to enable crypto in ... on line 24, referer: ...
PHP Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in ... on line 24, referer: ...
Path to pem file is correct (I tried absolute path). Thanks for help!