iOS 推送证书生成pem

cert:

openssl x509 -in aps_development\ \(8\).cer -inform der -out pushDeveCerTopem.pem

key:

openssl pkcs12 -nocerts -out pushDeveP12Topem.pem -in DevelopPushP12.p12

sum:

cat pushDeveCerTopem.pem pushDeveP12Topem.pem > sum.pem

连接APNs:

openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert pushDeveCerTopem.pem -key pushDeveP12Topem.pem

openssl s_client -connect gateway.push.apple.com:2195 -cert pushDeveCerTopem.pem -key pushDeveP12Topem.pem

你可能感兴趣的:(iOS 推送证书生成pem)