我正在做服务器以更新通行证。现在我想向 APNS 发送通知,但它不起作用。这是来自 php_error.log 的错误: [10-Apr-2013 08:59:24 Europe/Berlin] PHP Warning: stream_socket_client(): Unable to set private key file
`/Applications/MAMP/htdocs/passesWebserver/certificatePass.pem' in /Applications/MAMP/htdocs/passesWebserver/pushNotification.php on line 32
[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
[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
[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
//第 32 行: $tSocket = stream_socket_client('ssl://' . $tHost . ':' . $tPort, $error, $error_string, 2, STREAM_CLIENT_CONNECT, $tContext);