In order to setup your APN server to work with the Apple Push Notifications server, you’ll need to convert your Push Service certificates to .pem files. Some might not know how to properly go about doing this, so here we go! First thing you’ll want to do is open up Keychain Access On the left hand side you’ll see the “Certificates” section, click on it You should see your Apple Push Services certificates on the right hand side   Right click it, and click the Export option given to you. Name the this “apns-dev-cert” Now, click on the side arrow next to the name of your certificate and you should see a little key icon Right click the key icon, and export the key as “apns-dev-key” Now, open up Terminal and go to the directory you exported the certificates to. Type in the following commands (in order), providing your password when prompted. 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 cat apns-dev-cert.pem apns-dev-key-noenc.pem > apns-dev.pem Go ahead and close Terminal, you’re all done.

Read More