ios证书转换p12转pem

原创
2017/05/03 14:09
阅读数 1K
openssl pkcs12 -in push-sandbox.p12 -out push-sandbox-certs-keys.pem -nodes

包括了证书与密钥

openssl pkcs12 -in push-sandbox.p12 -out push-sandbox-certs.pem -clcerts -nokeys

只有证书没有密钥

openssl pkcs12 -in push-sandbox.p12 -out push-sandbox-keys.pem -nocerts -nodes

只有密钥没有证书并且不对私钥进行加密

openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert push-sandbox-certs.pem -key push-sandbox-keys.pem

模拟证书与私钥设置推送连接

Help

-nodes        don't encrypt private keys
-nokeys       don't output private keys.
-nocerts      don't output certificates.
-clcerts      only output client certificates.

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部