Skip to content

Instantly share code, notes, and snippets.

@tominsam
Created May 1, 2014 11:30
Show Gist options
  • Save tominsam/9b188e42a706df998f5d to your computer and use it in GitHub Desktop.
Save tominsam/9b188e42a706df998f5d to your computer and use it in GitHub Desktop.
local instructions for building push certificates
Generating push certificates:
Go to iOS developer portal, go to "App IDs", open the production app ID and open
settings. Click "create certificate" and follow instructions to get
aps_production.cer and aps_development.cer. Make sure you use distinctive names
with date in the CSR so you can find the things later.
Import generated .cer files into keychain.
In keychain, select "my certificates" on the left, and expand the "apple
{development,production} IOS Push services" row that corresponds to the cert you
just made. Select the push services row *and* the row's child together, and
file->export them both as a single .p12 file.
run
openssl pkcs12 -in Certificates.p12 -out production_push_notifications_cert.pem
-nodes -clcerts
Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment