title: How to connect to APNS for updating a pass
body: <p>I am doing server for updating a pass. Now I want to send notification to APNS, but it doesn't work. This is errors from php_error.log:  <code>[10-Apr-2013 08:59:24 Europe/Berlin] PHP Warning:  stream_socket_client(): Unable to set private key file</code> <code>`/Applications/MAMP/htdocs/passesWebserver/certificatePass.pem' in /Applications/MAMP/htdocs/passesWebserver/pushNotification.php on line 32</code> <br>
  <code>[10-Apr-2013 08:59:24 Europe/Berlin] PHP Warning:  stream_socket_client(): failed to create an SSL handle in /Applications/MAMP/htdocs/passesWebserver/pushNotification.php on line 32</code> <br> 
  <code>[10-Apr-2013 08:59:24 Europe/Berlin] PHP Warning:  stream_socket_client(): Failed to enable crypto in /Applications/MAMP/htdocs/passesWebserver/pushNotification.php on line 32</code><br><code>[10-Apr-2013 08:59:24 Europe/Berlin] PHP Warning:  stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Applications/MAMP/htdocs/passesWebserver/pushNotification.php on line 32</code></p>
  
  <p>//line 32: $tSocket = stream_socket_client('ssl://' . $tHost . ':' . $tPort, $error, $error_string, 2, STREAM_CLIENT_CONNECT, $tContext);</p>