Skip to content

Instantly share code, notes, and snippets.

@estum
Created December 15, 2019 09:33
Show Gist options
  • Save estum/f9fe1721a9f606290ce7b96c7e3572d8 to your computer and use it in GitHub Desktop.
Save estum/f9fe1721a9f606290ce7b96c7e3572d8 to your computer and use it in GitHub Desktop.
Getting Your APNs Certificate

Getting Your APNs Certificate

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:

  1. Click the disclosure arrow next to your certificate in Keychain Access and select the certificate and the key.
  2. Right click and choose Export 2 items….
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment