首页 > 移动平台 > 详细

iOS推送生成服务器端p12文件

时间:2015-06-03 11:13:38      阅读:251      评论:0      收藏:0      [点我收藏+]

    生成服务器端推送p12文件

 

   所需文件:A、开发证书  aps_developer_identity.cer

                 B、本地导出的私钥   :product_push.p12  

                 C、生成证书时用到的请求文件:Push.certSigningRequest                

1、将aps_developer_identity.cer转换成aps_developer_identity.pem格式

  1. openssl x509 -in aps_production.cer -inform DER -out aps_production_identity.pem -outform PEM 

2、将p12格式的私钥转换成pem

 

  1. openssl pkcs12 -nocerts -out apple_push_notification_production.pem -in product_push.p12  

 

3、创建p12文件

 

  1. 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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!