PKI NSS CLI - dogtagpki/pki GitHub Wiki
The pki nss commands can be used to manage an NSS database and its contents.
To create a new NSS database:
$ pki nss-create
By default it will create the NSS database in ~/.dogtag/nssdb. The database will not be password protected.
If the NSS database already exists it will ask for a confirmation before creating the new database which will overwrite the existing database.
To force it to create the new NSS database specify a --force option.
To specify a password for the internal token, specify a -c <password> or a -C <password file> option:
$ pki -c Secret.123 nss-create
To remove an existing NSS database:
$ pki nss-remove
By default it will remove the NSS database in ~/.dogtag/nssdb.
If the NSS database exists it will ask for a confirmation before removing the database.
To force it to remove the NSS database specify a --force option.