十一岁的加重songxing10000…… ------ 回到博主首页

苹果服务器证书生成步骤

0、需要终端生成的 aps.cer 和 aps.p12 文件。

1、把.cer的SSL证书转换为.pem文件,执行命令:

openssl x509 -in aps.cer -inform der -out PushChatCert.pem

2、把私钥aps.p12文件转化为.pem文件:

openssl pkcs12 -nocerts -out PushChatKey.pem -in aps.p12

注:需要输入证书的密码

3、将密钥转换成不需要密码就可以使用的:

openssl rsa -in PushChatKey.pem -out PushChatKeyNoPassword.pem
posted @ 2015-05-23 22:06  songxing10000  阅读(338)  评论(0编辑  收藏  举报