推送心得!
把.cer文件转换成.pem文件:
cd /Users/LiNaibin/Desktop
openssl x509 -in aps_development_ipad.cer -inform der -out BaiKeCert.pem
把私钥.p12文件转换成.pem文件:(注意要设密码不然无法推送)
cd /Users/LiNaibin/Desktop
openssl pkcs12 -nocerts -out BaiKeKey.pem -in aps_development_ipad.p12
将私钥和证书合并
cat BaiKeCert.pem BaiKeKey.pem > ck_ipad.pem
测试证书
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert BaiKeCert.pem -key BaiKeKey.pem
openssl s_client -cert ck.pem

浙公网安备 33010602011771号