Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Extract certificate and private key from a .pfx file

Leer en espanol
Extract certificate and private key from a .pfx file

Table of contents

Export private key from pfx file: textopenssl pkcs12 -in round ===

The reason for this post is to define the tasks necessary to extract the private key and certificate from a .pfx file

Export the private key from the pfx file:

text
openssl pkcs12 -in redorbita.pfx -nocerts -out redorbita-key.pem

Export the certificate from pfx file:

text
openssl pkcs12 -in redorbita.pfx -clcerts -nokeys -out redorbita-cert.pem

Delete password of the private key

text
openssl rsa -in redorbita-key.pem -out redorbita-privatekey.key

All the best.

Comments