Error ios push notifications

I am having problems with the php file to generate notifications, errors are:

PHP Warning:  stream_socket_client(): Unable to set local cert chain     
 file `public_html/certs/TestPushCK.pem'; 
 Check that your cafile/capath settings include details of your   certificate and its issuer in public_html/pushnotificacion.php on line 20
 PHP Warning:  stream_socket_client(): failed to create an SSL handle in  /public_html/pushnotificacion.php on line 20
PHP Warning:  stream_socket_client(): Failed to enable crypto in /public_html/pushnotificacion.php on line 20
PHP Warning:  stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /public_html/pushnotificacion.php on line 20
Error de conexión: 0 

And this is the php file

// Nuestro token
 $deviceToken = '648cf5ac498c6c2a86f2572556049b888ed81de53da4977fc9676f1731ab514d';

// El password del fichero .pem
 $passphrase = '16093101';
 $sslPem = 'TestPushCK.pem';

 // El mensaje push
 $message = '¡Mi primer mensaje Push!';

 $ctx = stream_context_create();
 //Especificamos la ruta al certificado .pem que hemos creado
 stream_context_set_option($ctx, 'ssl', 'local_cert', dirname(__FILE__) . '/certs/' . $sslPem);
  stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);

 // Abrimos conexión con APNS
 $fp = stream_socket_client(
    'ssl://gateway.sandbox.push.apple.com:2195', $err,
  $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);

 if (!$fp) {
      exit("Error de conexión: $err $errstr" . PHP_EOL);
  }

  echo 'Conectado al APNS' . PHP_EOL;

  // Creamos el payload
  $body['aps'] = array(
  'alert' => $message,
  'sound' => 'bingbong.aiff',
  'badge' => 35
  );

  // Lo codificamos a json
   $payload = json_encode($body);

  // Construimos el mensaje binario
    $msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n',     strlen($payload)) . $payload;

  // Lo enviamos
   $result = fwrite($fp, $msg, strlen($msg));

  if (!$result) {
     echo 'Mensaje no enviado' . PHP_EOL;
   } else { 
     echo 'Mensaje enviado correctamente' . PHP_EOL;
   }

   // cerramos la conexión
   fclose($fp);
  ?>

Check the server and the port is enabled. I do not know the error on the file is in the directory that is sent and steps to sign and generate have been correct. It’s my first attempt notifications and was clearly going to have errors but none of the solutions I’ve found, they have served me. I hope someone here can help me.

Thank You