1 iOS制做服务器的推送证书
a 请求证书
b 导出密钥
c 制做推送ssl certificate
d 制做服务器用的证书
1、Push.certSigningRequest
2、Push.p12
3、aps_developer_identity.cer
终端
1、将aps_developer_identity.cer转换成aps_developer_identity.pem格式
openssl x509 -in aps_developer_identity.cer -inform DER -out aps_developer_identity.pem
2、将p12格式的私钥转换成pem
openssl pkcs12 -nocerts -out Push_Noenc.pem -in Push.p12
3、创建p12文件
openssl pkcs12 -export -in aps_developer_identity.pem -inkey Push_Noenc.pem -certfile Push.certSigningRequest -name "aps_developer_identity" -out aps_developer_identity.p12
测试的服务器地址:telnet gateway.sandbox.push.apple.com 2195
产品推送服务器地址:telnet gateway.push.apple.com 2195