Home  >  Article  >  Backend Development  >  ios - php 做Apns 需要哪几个文件?

ios - php 做Apns 需要哪几个文件?

WBOY
WBOYOriginal
2016-06-06 20:13:46949browse

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)

我看网上有说需要证书和一个私钥文,也就是两个文件,但有些资料又没这样说,所以没搞明白到底需要哪些文件才能。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn