APNs 生成.pem证书给php后端使用
1. 程序打开消息推送 targets->capabilities->push notifications
2. 从颁发机构请求证书
3. 创建证书certificates
4. 创建provisioning profiles
5. 创建pem
命令行创建pem证书两种方式:
方法一:
openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem
//openssl x509 -in aps_production.cer -inform der -out PushChatCert.pem
openssl pkcs12 -nocerts -out PushChatKey.pem -in push.p12
cat PushChatCert.pem PushChatKey.pem > ck.pem
方法二:
openssl pkcs12 -in push.p12 -out production_push.pem -nodes