While the creation of .pem file is detailed in Apple’s Local and Push Notification Programming Guide, it’s hidden at the bottom of the Provisioning and Development section and it’s slightly ambiguous in it’s wording. Also, at the time of this writing, searching for instructions on the process will lead to pages detailing a method that may not work with your current APNs solution.• Find the development or deployment certificate for the developer account in the “My Certificates” category in Keychain Access.
• Select both the certificate and the private key. The private key is found by clicking the disclosure triangle to the left of the certificate. If you don’t have the private key you’ll need to find out who generated the CSR for the certificate.
• Right click and select “Export 2 Items…”
• You get a Save File dialog. The file format you want to save in is .p12. If you have any other questions about how to use a save dialog you’re on you own.
• You’ll be prompted to give a password, feel free to leave this blank.
• You’ll be prompted to give the password for your keychain (twice), which you should do if you want this to work.
• Open up Terminal.
• Enter the command “openssl pkcs12 -in CertificateName.p12 -out CertificateName.pem -nodes”
• You’ll be prompted for the password I told you to leave blank. Do what comes naturally.
• You should now have a .pem that you can give to the server team to handle communication with Apple’s APNs servers.