Skip to content

Instantly share code, notes, and snippets.

@bendjones
Last active August 29, 2015 14:07
Show Gist options
  • Save bendjones/73a6ca7e889ef041475f to your computer and use it in GitHub Desktop.
Save bendjones/73a6ca7e889ef041475f to your computer and use it in GitHub Desktop.
APNS Cert Creation

###Creation of key and cert from exported p12 file

$ openssl pkcs12 -clcerts -nokeys -out apns-cert.pem -in cert.p12
$ openssl pkcs12 -nocerts -out apns-key.pem -in key.p12
$ openssl rsa -in apns-key.pem -out apns-key-noenc.pem

###Optional to create combined key

$ cat apns-cert.pem apns-key-noenc.pem > apns.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment