Skip to content

Instantly share code, notes, and snippets.

@bendjones
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save bendjones/73a6ca7e889ef041475f to your computer and use it in GitHub Desktop.

Select an option

Save bendjones/73a6ca7e889ef041475f to your computer and use it in GitHub Desktop.

Revisions

  1. bendjones renamed this gist Oct 1, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. bendjones created this gist Oct 1, 2014.
    11 changes: 11 additions & 0 deletions APNSCertCreationFromP12
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ###Creation of key and cert from exported p12 file
    ```bash
    $ 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
    ```bash
    $ cat apns-cert.pem apns-key-noenc.pem > apns.pem
    ```