苹果分发证书导致14094410:SSL例程:SSL3_READ_BYTES:sslv3警报握手失败

时间:2014-11-05 03:22:18

标签: ios ssl push-notification

我已按照本教程Ali Hafizji

创建了支持通知的iPhone应用

在生产中运行时,我收到以下错误: 14094410:SSL例程:

SSL3_READ_BYTES:sslv3 alert handshake failure

itunes显示分发配置:

Enabled Services: Game Center, In-App Purchase, Push Notifications
Expires:Sep 15, 2015
Status:Active

我已将pem文件加载到服务器并按如下方式调用:

    theCertfile ='./CK_production.pem'
    theHost = ( 'gateway.push.apple.com', 2195 )
    ssl_sock = ssl.wrap_socket( socket.socket( socket.AF_INET, socket.SOCK_STREAM ), certfile = theCertfile )
    ssl_sock.connect( theHost )
    ssl_sock.write( theNotification )
    ssl_sock.close()

我理解Apple停止使用SSL 3.0发送推送通知,我们需要使用TSL而不是苹果文档没有示例,有人能指点我的Python / Django教程吗? (只是要明确我做谷歌的教程,但没有找到一个)

2 个答案:

答案 0 :(得分:1)

原因是Apple停止使用SSL 3.0发送推送通知。

为什么呢? 2014年9月底发布的一则新闻称,它不再安全。 Read Apple note

你可以google" BEAST攻击"欲获得更多信息。

现在? 您的服务需要使用TLS。 这是Apple documentation

答案 1 :(得分:0)

我有同样的问题,原来我在我的Mac终端上用PHP命令运行脚本。将文件复制到我的服务器,它现在正在运行。