These instructions come from another great gem, apn_on_rails.
Once you have the certificate from Apple for your application, export your key and the apple certificate as p12 files. Here is a quick walkthrough on how to do this:
- Click the disclosure arrow next to your certificate in Keychain Access and select the certificate and the key.
- Right click and choose
Export 2 items…
. - Choose the p12 format from the drop down and name it
cert.p12
.
Optionally, you may covert the p12 file to a pem file (this step is optional because Apnotic natively supports p12 files):
$ openssl pkcs12 -in cert.p12 -out apple_push_notification_production.pem -nodes -clcerts