1
I created a small APNS Server using PHP, using an older version of Xampp. However when I went to use the push file in a current version, I received the error as per the image:
The error line that is referenced above is this:
// Servidor de produção0
$fp = stream_socket_client( 'ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);
I believe that the stream_socket_client function is outdated, as I am not an expert in the field of PHP, I wonder if this is the problem, and if it is, how could replace or update this function.
Error says certificate check failed.
– bfavaretto