4

我从用于向 APNS 发送消息的 PHP 代码中收到此错误消息……有人遇到过同样的问题吗?

Warning: stream_socket_client() [function.stream-socket-client]: SSL operation 
failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:
SSL3_READ_BYTES:sslv3 alert handshake failure in 
/Library/WebServer/Documents/anish/apns/2.php on line 8

Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable 
crypto in /Library/WebServer/Documents/anish/apns/2.php on line 8

Warning: stream_socket_client() [function.stream-socket-client]: unable to connect 
to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Library/WebServer
/Documents/anish/apns/2.php on line 8
Failed to connect: 0

Warning: fclose(): supplied argument is not a valid stream resource in   
/Library/WebServer/Documents/anish/apns/2.php on line 20*

此外,它似乎总是无法连接到 gateway.sandbox.push.apple.com。我什至尝试使用 PushMeBaby,但它也无法连接到 gateway.sandbox.push.apple.com

4

1 回答 1

4

问题显然出在证书的安装上。如果证书安装正确,那么一切都会像魅力一样完美......!

于 2009-07-07T10:13:16.780 回答