Skip to content

Instantly share code, notes, and snippets.

@akramarev
Created January 28, 2019 00:23
Show Gist options
  • Save akramarev/adcf4b7f22cd538cdf22eae8115b04ec to your computer and use it in GitHub Desktop.
Save akramarev/adcf4b7f22cd538cdf22eae8115b04ec to your computer and use it in GitHub Desktop.
[pk12 into pem]
# https://stackoverflow.com/questions/15144046/converting-pkcs12-certificate-into-pem-using-openssl
# After that you have:
# - certificate in newfile.crt.pem
# - private key in newfile.key.pem
openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys
openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment