【问题标题】:Error Using PHP for iPhone APNS为 iPhone APNS 使用 PHP 时出错
【发布时间】:2010-11-06 23:19:00
【问题描述】:

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

【问题讨论】:

    标签: php iphone iphone-sdk-3.0 push-notification


    【解决方案1】:

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

    【讨论】:

    • @Anish 你做了什么来修复你的证书安装?我的证书路径是正确的。
    猜你喜欢
    • 1970-01-01
    • 2010-12-26
    • 1970-01-01
    • 2013-10-02
    • 2023-03-30
    • 2013-01-11
    • 1970-01-01
    • 2017-10-04
    • 2013-11-08
    相关资源
    最近更新 更多