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


How to create a new "cert8.db" file using Mozilla "certutil" tool?



If you want to create a new "cert8.db" file to store certificates and private keys, you can use the Mozilla "certutil -N" command as shown in this tutorial:

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

Enter a password which will be used to encrypt your keys.
The password should be at least 8 characters long,
and should contain at least one non-alphabetic character.

Enter new password: FYIcenter
Re-enter password: FYIcenter

C:\fyicerter>dir *.db

07/04/2012  07:51 PM            65,536 cert8.db
07/04/2012  07:51 PM            16,384 key3.db
07/04/2012  07:50 PM            16,384 secmod.db

What you are getting from this tutorial:

  • "-N" option creates a new certificate database.
  • "-d .\" specifies the directory where the database will be created.
  • "FYIcenter" is the password used to protect the database files.
  • "cert8.db, key3.db, secmod.db" are files created by the "certutil -N" command to store certificates.

2012-08-01, 8393👍, 0💬