Skip to content

Instantly share code, notes, and snippets.

@riseno
Created June 27, 2018 22:00
Show Gist options
  • Save riseno/05b1d5350fca005fc1613a98aeb10faa to your computer and use it in GitHub Desktop.
Save riseno/05b1d5350fca005fc1613a98aeb10faa to your computer and use it in GitHub Desktop.
extract p12 to pem and erase pem password
# extract p12 to pem
openssl pkcs12 -clcerts -nokeys -in apiclient_cert.p12 -out apiclient_cert.pem
openssl pkcs12 -nocerts -in apiclient_cert.p12 -out apiclient_key.pem
# erase pem password
openssl rsa -in apiclient_key.pem -out apiclient_key_no_password.pem
openssl x509 -in apiclient_cert.pem -out apiclient_cert_no_password.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment