Skip to main content

Export Private Key and Public Key From a PFX certificate

1. Export the Private Key#

openssl pkcs12 -in tls.pfx -nocerts -out tls.key -nodes

2. Export the Public Key#

openssl pkcs12 -in tls.pfx -nokeys -out tls.crt
Last updated on by Yasitha Bogamuwa