1、参考:http:/ 扩展此选项然后右击“Apple Development Push Services” Export “Apple Development Push Services ID123”。保存为 apns-dev-cert.p12 文件。7. 扩展“Apple Development Push Services” 对“Private Key”做同样操作,保存为 apns-dev-key.p12 文件。终端:最新的 2012.09.24 11:11172-1-1-36: anqing$ cd /Users/anqing/Desktop/出行装备 3.0/穷游清单push/pro 17
2、2-1-1-36:pro anqing$ lsapns-pro-cert.p12 apns-pro-key.p12172-1-1-36:pro anqing$ openssl pkcs12 -clcerts -nokeys -out apns-pro-cert.pem -in apns-pro-cert.p12Enter Import Password: (直接按回车键)MAC verified OK172-1-1-36:pro anqing$ openssl pkcs12 -nocerts -out apns-pro-key.pem -in apns-pro-key.p12Enter Imp
3、ort Password:MAC verified OKEnter PEM pass phrase:Verifying - Enter PEM pass phrase:172-1-1-36:pro anqing$ lsapns-pro-cert.p12 apns-pro-cert.pem apns-pro-key.p12 apns-pro-key.pem172-1-1-36:pro anqing$ openssl rsa -in apns-pro-key.pem -out apns-pro-key-noenc.pemEnter pass phrase for apns-pro-key.pem:
4、 848566writing RSA key172-1-1-36:pro anqing$ lsapns-pro-cert.p12 apns-pro-cert.pem apns-pro-key-noenc.pem apns-pro-key.p12 apns-pro-key.pem172-1-1-36:pro anqing$ cat apns-pro-cert.pem apns-pro-key-noenc.pem apns-pro.pem172-1-1-36:pro anqing$ lsapns-pro-cert.p12 apns-pro-cert.pem apns-pro-key-noenc.p
5、em apns-pro-key.p12 apns-pro-key.pem apns-pro.pemopenssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pemcat apns-dev-cert.pem apns-dev-key-noenc.pem apns-dev.pem测试正式推送 :