Skip to content

Instantly share code, notes, and snippets.

@northtyphoon
Last active April 5, 2020 00:10
Show Gist options
  • Save northtyphoon/732c74338ab304ade58e15e8b0e2964e to your computer and use it in GitHub Desktop.
Save northtyphoon/732c74338ab304ade58e15e8b0e2964e to your computer and use it in GitHub Desktop.
Certificate

Generate certificate chain pem file (root ca on the top)

 openssl pkcs12 -in my.pfx -out ca.pem -cacerts -nokeys

Generate client certificate pem file

 openssl pkcs12 -in my.pfx -out key.pem -nocerts

Generate key pem file

 openssl pkcs12 -in my.pfx -out client.pem -clcerts -nokeys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment