对iPhone APN使用PHP时出错

对iPhone APN使用PHP时出错,php,iphone,iphone-sdk-3.0,push-notification,Php,Iphone,Iphone Sdk 3.0,Push Notification,我从用于向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 /Lib

我从用于向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

问题显然在于证书的安装。如果证书安装正确,那么一切都会很好地工作

@Anish你做了什么来修复你的证书安装?我的证书路径是正确的。