Certificate Database Tool is a command-line utility that can create the certificate database file (cert7.db) for Certificate Management System. The utility can also list, generate, modify, or delete certificates within the file.
Syntax
Usage
Examples
Options specify an action and are uppercase. Option arguments modify an action and are lowercase. Certificate Database Tool command options and their arguments are defined as follows:
-N [-d certdir] Creating a new certificate and adding it to the database with one command:
-N [-d certdir]
-S -k shortkeyID -y rsa|dsa -n certname -s subject [-c issuer |-x] -t trustargs [-h tokenname] [-m serial-number] [-v valid-months] [-w offset-months] [-d certdir] [-p phone] [-f password-file] [-1] [-2] [-3] [-4] Making a separate certificate request:
-S -k shortkeyID -y rsa|dsa -n certname -s subject [-c issuer |-x] -t trustargs [-h tokenname] [-m serial-number] [-v valid-months] [-w offset-months] [-d certdir] [-p phone] [-f password-file] [-1] [-2] [-3] [-4]
-R -k shortkeyID -y rsa|dsa -s subject [-h tokenname] [-d certdir] [-p phone] [-o output-file] [-f password-file] Creating a new binary certificate from a binary certificate request:
-R -k shortkeyID -y rsa|dsa -s subject [-h tokenname] [-d certdir] [-p phone] [-o output-file] [-f password-file]
-C [-c issuer |-k shortkeyID -y rsa|dsa -x] [-f password-file] [-h tokenname] -i cert-request-file -o output-file [-m serial-number] [-v valid-months] [-w offset-months] [-d certdir] [-1] [-2] [-3] [-4] Adding a certificate to an existing database:
-C [-c issuer |-k shortkeyID -y rsa|dsa -x] [-f password-file] [-h tokenname] -i cert-request-file -o output-file [-m serial-number] [-v valid-months] [-w offset-months] [-d certdir] [-1] [-2] [-3] [-4]
-A -n certname -t trustargs [-h tokenname] [-d certdir] [-a] [-i cert-request-file] Listing all certificates or a named certificate:
-A -n certname -t trustargs [-h tokenname] [-d certdir] [-a] [-i cert-request-file]
-L [-n certname] [-d certdir] [-r] [-a] Validating a certificate:
-L [-n certname] [-d certdir] [-r] [-a]
-V -n certname -b validity-time -u certusage [-e] [-l] [-d certdir] Modifying a certificate's trust attribute:
-V -n certname -b validity-time -u certusage [-e] [-l] [-d certdir]
-M -n certname -t trustargs [-d certdir] Displaying a list of the options and arguments used by Certificate Database Tool:
-M -n certname -t trustargs [-d certdir]
-H
Listing Certificates in a Database
Creating a Certificate Request
Creating a Certificate
Adding a Certificate to the Database
Validating a Certificate
This example creates a new certificate database (cert7.db file) in the specified directory:
This example lists all the certificates in the cert7.db file in the specified directory:
This example generates a binary certificate request file named e95c.req in the specified directory:
A valid certificate must be issued by a trusted CA. If a CA key pair is not available, you can create a self-signed certificate (for purposes of illustration) with the -x argument. This example creates a new, self-signed binary certificate named e95c.crt, from a binary certificate request named e95c.req, in the specified directory.
This example adds a certificate to the certificate database:
This example validates a certificate: