![](/img/trans.png)
[英]OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate revoked
[英]apple distribution certificate causes 14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
我按照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而不是Apple文档没有示例,有人能指点我的教程,对于Python / Django? (只是为了清楚我做谷歌的教程,但没有找到一个)
原因是Apple停止使用SSL 3.0发送推送通知。
为什么? 2014年9月底发布的一则新闻称,它不再安全。 阅读Apple note
您可以谷歌“BEAST攻击”获取更多信息。
现在? 您的服务需要使用TLS。 这是Apple文档
我遇到了同样的问题,结果发现我在Mac终端上使用PHP命令运行脚本。 将文件复制到我的服务器,它现在正在运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.