Skip to content

Instantly share code, notes, and snippets.

@alexey-detr
Created July 9, 2014 11:16
Show Gist options
  • Save alexey-detr/d92c228b333bb88adb1c to your computer and use it in GitHub Desktop.
Save alexey-detr/d92c228b333bb88adb1c to your computer and use it in GitHub Desktop.
#!/bin/sh
# Extract certificate
openssl pkcs12 -clcerts -nokeys -in apns-prod-cert.p12 -out apns-prod-cert.pem
# Extract key
openssl pkcs12 -nocerts -in apns-prod-key.p12 -out apns-prod-key.pem
# Remove password from PEM key
openssl rsa -in apns-prod-key.pem -out apns-prod-key-noenc.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment