Mozilla "certutil -A -i" - Add Certificate to cert8.db File

Q

How to add a certificate into "cert8.db" file using Mozilla "certutil" tool? I have a certificate file in PEM format

✍: FYIcenter.com

A

If you want to add a certificate into a "cert8.db" file from a certificate file, you can use the Mozilla "certutil -A -i" command as shown in this tutorial:

C:\fyicerter>\fyicerter\nss\bin\certutil -A -d .\
-i GeoTrust.pem -n "GeoTrust SSL CA" -t ",,"

C:\fyicerter>\fyicerter\nss\bin\certutil -L -d .\

GeoTrust SSL CA                                              ,,

What you are getting from this tutorial:

  • "-A" command adds a certificate to the certificate database.
  • "-d .\" specifies the directory where the database, cert8.db, is located.
  • "-i GeoTrust.pem" specifies the input certificate file.
  • '-n "GeoTrust SSL CA"' specifies a name for this certificate.
  • '-t ",,"' specifies trust arguments for 3 categories: SSL, email, and object signing. ",," means no argument is provided. So it should not be trusted.

 

Mozilla "certutil -A -i" - Add Root CA Certificate to cert8.db

Mozilla "certutil -A" Command Options

Using to Mozilla "certutil" Commands

⇑⇑ Mozilla "certutil" - Certificate Management Tool

2012-08-01, 13563🔥, 0💬