How do I create a .pem file to be stored in the hosting server for APN payload data?
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!!