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 9 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.

2012-08-01, 4267👍, 0💬