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

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

WBOY
Release: 2016-06-06 20:13:46
Original
1066 people have browsed it

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)

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template