今天公司项目做推送服务器需要把cer文件转换成pem文件使用。搜索下网络。找到一篇不错的博文,链接我会放到,参考文章上去。
大致是需要三步转换:
1.openssl x509 -in aps_production.cer -inform DER -out aps_production_identity.pem -outform PEM
2.openssl pkcs12 -nocerts -out PushChatKey.pem -in PushChat.p12
3. cat aps_production_identity.pem PushChatKey.pem > ck.pem
这里需要有个前提,就是你已经活得了文件aps_production.cer、PushChat.p12。
接下来说下PushChat.p12文件的获得ÿ