Mozilla "certutil -L -n -r" - Export Certificate in DER Format

Q

How to export a certificate from a cert8.db file to a certificate file in DER binary format?

✍: FYIcenter.com

A

If you want to export a certificate from the "cert8.db" file created by Firefox into a certificate file in DER binary format, you can use the Mozilla "certutil -L -n -r" command as shown in this tutorial:

C:\fyicerter>\fyicerter\nss\bin\certutil -L 
-d C:\Users\fyicenter\AppData]Roaming\Mozilla\Firefox\Profiles\xxxx.default
-n "GeoTrust SSL CA" -r > GeoTrust.crt

To verify the certificate file, double click on "GeoTrust.crt". You see the Windows certificate viewer showing up the general information about this certificate.

 

Mozilla "certutil -N" - Create New cert8.db File

Mozilla "certutil -L -n -a" - Export Certificate in PEM Format

Using to Mozilla "certutil" Commands

⇑⇑ Mozilla "certutil" - Certificate Management Tool

2012-08-01, 7250🔥, 0💬