Creating .pem file for APNS?

后端 未结 11 2277
野的像风
野的像风 2020-11-27 08:59

How do I create a .pem file to be stored in the hosting server for APN payload data?

11条回答
  •  孤街浪徒
    2020-11-27 09:16

    There is a easiest way to create .Pem file if you have already apns p12 file in your key chain access.

    Open terminal and enter the below command:

    For Devlopment openssl pkcs12 -in apns-div-cert.p12 -out apns-div-cert.pem -nodes -clcerts

    For Production openssl pkcs12 -in apns-dist-cert.p12 -out apns-dist-cert.pem -nodes -clcerts

    Rename your P12 file with this name : apns-div-cert.p12 otherwise instead of this you need to enter your filename. Thanks!!

提交回复
热议问题