作者:手机用户2502870143_120 | 来源:互联网 | 2018-05-15 07:03
IOS开发人员说只要一个后缀名为是p12的就可以了我把这个p12转换成pem后用PHP编写了个发送测试,却提示:Unabletoconnect:tls:gateway.push.apple.com:2195:2(stream_socket_client():Failedtoenablec...
IOS开发人员说只要一个后缀名为是p12的就可以了
我把这个p12转换成pem后用PHP编写了个发送测试,却提示:
Unable to connect: tls://gateway.push.apple.com:2195: 2
(stream_socket_client(): Failed to enable crypto)
我看网上有说需要证书和一个私钥文,也就是两个文件,但有些资料又没这样说,所以没搞明白到底需要哪些文件才能。
回复内容:
IOS开发人员说只要一个后缀名为是p12的就可以了
我把这个p12转换成pem后用PHP编写了个发送测试,却提示:
Unable to connect: tls://gateway.push.apple.com:2195: 2
(stream_socket_client(): Failed to enable crypto)
我看网上有说需要证书和一个私钥文,也就是两个文件,但有些资料又没这样说,所以没搞明白到底需要哪些文件才能。