简体   繁体   English

帮助APN创建PEM

[英]help in APNs pem creation

after exporting to p.12 in MacOSX, can i run the following 3 step in Linux? 在MacOSX中导出到第12页之后,我可以在Linux中运行以下3个步骤吗? Or i must get it done in the same machine where i export to P.12 before i upload to Linux server to use with my php script? 还是我必须在导出到P.12的同一台计算机上完成此操作,然后再上传到Linux服务器以与PHP脚本一起使用?

openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12
openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem

I am not sure but this might be helpful: 我不确定,但这可能会有所帮助:

1) CertificateCreation 1) 证书创建

2) apple-push-notification-service-tutorial 2) 苹果推送通知服务教程

I think there is no problem in use the openssl in a linux machine. 我认为在Linux机器上使用openssl没有问题。 The algorithm is the same. 算法是相同的。

I used this tutorial and works great: http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/ 我使用了本教程,效果很好: http : //blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM