我有一个位于路径/var/www/vhosts/hostname/httpdocs/webservices
的PHP脚本,我在那里有PHP脚本和.pem
文件,并且我已正确地在脚本中调用了.pem
文件,但是当我运行脚本时,我没有收到推送通知,而是得到了警告,如下所示:
Warning: stream_socket_client() [function.stream-socket-client]: Unable to set local cert chain file `ck_push_test.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /var/www/vhosts/ipartyapps.com/httpdocs/webservices/testPush.php on line 12
Warning: stream_socket_client() [function.stream-socket-client]: failed to create an SSL handle in /var/www/vhosts/ipartyapps.com/httpdocs/webservices/testPush.php on line 12
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /var/www/vhosts/ipartyapps.com/httpdocs/webservices/testPush.php on line 12
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /var/www/vhosts/ipartyapps.com/httpdocs/webservices/testPush.php on line 12
Failed to connect 0
我已经仔细检查了所有路径、权限以及脚本和
.pem
文件的所有者/组,但仍无法收到推送通知。