Skip to content

Instantly share code, notes, and snippets.

@konjoot
Created June 8, 2018 14:27
Show Gist options
  • Save konjoot/d6b8003b5a5c87794416f4f20473789d to your computer and use it in GitHub Desktop.
Save konjoot/d6b8003b5a5c87794416f4f20473789d to your computer and use it in GitHub Desktop.
openssl export certs from pfx bundle
# Export client certificate
openssl pkcs12 -in bundle.pfx -clcerts -nokeys -out client.pem
# Export client key
openssl pkcs12 -in bundle.pfx -nocerts -out client.key -nodes
# Export CA certs chain
openssl pkcs12 -in bundle.pfx -cacerts -nokeys -out ca.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment