- Install the Dogtag packages.
- Create the directory server instance for the Dogtag Internal DB.
- Run the pkispawn script to create and configure a subsystem instance.
- View the keys and certificates that Dogtag created on the HSM.
- Import the CA Administrator PKCS #12 file into the browser.
- Access the new CA subsystem in the browser.
Install the Dogtag packages
Perform the following steps to install the Dogtag packages:Create the directory server instance
The Dogtag CA and KRA subsystems use a 389 Directory Server as an internal database. To configure a directory server instance for the Dogtag Internal DB, perform the following steps:Set a fully qualified domain name (FQDN) as the hostname for your Fedora 28 system. First, edit the
/etc/hosts file as follows:You can set any valid FQDN. It does not need to be set to
pki.example.com.Shell
None
Create a configuration file in the new directory with the [General] and [slapd] sections configured as follows:
Shell
None
Run the pkispawn script to create and configure a subsystem instance
You can use the pkispawn command line tool to install and configure a new PKI instance. It eliminates the need for separate installation and configuration steps, and you can run it either interactively, as a batch process, or as a combination of both (batch process with prompts for passwords). Refer to the pkispawn man page for detailed information about all supported options by runningman pkispawn.
The pkispawn command reads in its default installation and configuration values from a plain text configuration file (/etc/pki/default.cfg). This file consists of name=value pairs divided into [DEFAULT], [Tomcat], [CA], [KRA], [OCSP], [TKS], and [TPS] sections.
We strongly recommend that you read the full documentation to understand the purpose of every parameter in the
/etc/pki/default.cfg file. This enables you to customize your PKI environment to your specific needs.default.cfg file.
You can spawn any of the various Dogtag PKI subsystems (CA, KRA, OCSP, TKS, TPS) to use the HSM, but this integration guide focuses solely on the Certificate Authority (CA) for brevity.
Prepare an override configuration file
Perform the following steps to prepare an override configuration file with the required HSM parameters:Create the override configuration file for the CA subsystem.You can use the following example override file for spawning a CA subsystem with the HSM:
Shell
You should set all values within angle brackets to specific values for your system. Set all other values exactly as shown.
The pki\ds\password value must match the password set for the directory manager when you installed 389 Directory Server.
None
Run the pkispawn utility
Perform the following steps to run the pkispawn utility:In a terminal, run the following command to deploy a CA subsystem by using the Vectera Plus HSM:
You need the full path to the
ca.cfg file if you are not running the command from the directory where you saved the ca.cfg.Shell
If you see a warning about manually adding a module while p11-kit is enabled, disregard this warning and select [ Enter ] to continue.
View the keys and certificates
To view the keys and certificates that Dogtag created on the HSM, use the PKCS11Manager utility packaged with the Futurex PKCS #11 module.In a terminal, go to the directory where the FXPKCS11 module is installed (such as This displays the following main menu:
/usr/local/bin/fxpkcs11) and run PKCS11Manager by using the following command:Shell
None
Type the password of the identity defined in the FXPKCS11 configuration file, and select the Enter key.
If successful, you receive confirmation that you are logged in.
Import the PKCS #12 file
Perform the following steps to import the CA Administrator PKCS #12 file into the browser:The following example assumes you use a Firefox web browser. There might be some differences in the steps when using a different browser, but the overall process is the same.
Under the Your Certificates tab, select Import to import the CA Administrator PKCS #12 file (
ca_ admin_cert.p12). When it prompts for a password, enter the value that you configured for the pki_client_pkcs12_password define in the ca.cfg file in the Prepare an override configuration file with required HSM parameters section of this guide.You can find the location of the
caadmincert.p12 file in the installation summary for the CA subsystem deployment.Access the new CA subsystem
Perform the following steps to access the new CA subsystem in the browser:
This completes the Dogtag Certificate System integration with the Futurex Vectera Plus HSM. An application partition on the Vectera Plus secures all CA subsystem keys and makes them available to Dogtag Certificate System as needed.

