Skip to content

Instantly share code, notes, and snippets.

@brunoleles
Last active February 21, 2017 23:19
Show Gist options
  • Save brunoleles/2ca6ed8694f44337a11f to your computer and use it in GitHub Desktop.
Save brunoleles/2ca6ed8694f44337a11f to your computer and use it in GitHub Desktop.
Convert Apple Push Notification .p12 files to .pem for use on PHP
# not tested
openssl pkcs12 -in aps_cert.p12 -out aps_cert.pem -nodes -clcerts -passin pass:**** -passout pass:****
# "semi" - tested :]
openssl pkcs12 -in aps_cert.p12 -out aps_cert.pem -nodes -clcerts
# worked
openssl pkcs12 -in aps_cert.p12 -out aps_cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment