- Go to Apple Member Center https://developer.apple.com
Certificates
- Select
Apple Push Notification service SSL (Sandbox)
and Add new certificate. - Create a CSR from Keychain Access on Mac
- Upload this CSR
- Download the
.cer
file - Open and Import it in Keychain Access
- Export the private key as .p12 file
- In the directory containing cert.cer and key.p12, execute the following commands to generate your .pem files
$ openssl x509 -in aps_development.cer -inform DER -outform PEM -out aps_development.pem
$ openssl pkcs12 -in key.p12 -out key.pem -nodes