生成服务器端推送p12文件
所需文件:A、开发证书 aps_developer_identity.cer
B、本地导出的私钥 :product_push.p12
C、生成证书时用到的请求文件:Push.certSigningRequest
1、将aps_developer_identity.cer转换成aps_developer_identity.pem格式
- openssl x509 -in aps_production.cer -inform DER -out aps_production_identity.pem -outform PEM
2、将p12格式的私钥转换成pem
- openssl pkcs12 -nocerts -out apple_push_notification_production.pem -in product_push.p12
3、创建p12文件
- openssl pkcs12 -export -in aps_production_identity.pem -inkey apple_push_notification_production.pem -certfile Push.certSigningRequest -name "aps_production_identity" -out aps_production_identity.p12
iOS推送生成服务器端p12文件
原文:http://www.cnblogs.com/kingbo/p/4548373.html