Install the Dogtag packages
Create the Directory Server instance
The Dogtag CA and KRA subsystems use a 389 Directory Server as an internal database. Perform the following steps to create the Directory Server instance for the Dogtag Internal DB:To set a FQDN (fully qualified domain name) as the hostname for your Fedora 28 system, edit the You must also run the following command to update the hostname in the
/etc/hosts file as follows:Shell
You can set any valid FQDN, not just
pki.example.com./etc/hostname file.Shell
Create a configuration file named setup.inf in the
/etc/389-ds directory with the [General] and [slapd] sections configured as follows:Shell
Create a subsystem instance
The next step in the process is to run the pkispawn script to create and configure a subsystem instance. The pkispawn command line tool installs and configures a new PKI instance. It eliminates the need for separate installation and configuration steps, and may be run either interactively, as a batch process, or a combination of both (batch process with prompts for passwords). Refer to the pkispawn man page for detailed information about all supported options by running man 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 CryptoHub, but this integration guide focuses on the Certificate Authority (CA) for brevity.
Perform the following tasks:
- Prepare an override configuration file with the required HSM parameters.
- Run the pkispawn utility.
- View the keys and certificates that Dogtag created in the CryptoHub.
- Import the CA administrator PKCS #12 file into the browser.
- Access the new CA subsystem in the browser.
Prepare a configuration file
Perform the following steps to prepare an override configuration file with the required HSM parameters:The following is an example override file that can be used for spawning a CA subsystem with the CryptoHub :
All values contained within angle brackets need to be set to a specific value by the user. All other values should be set exactly as shown.
The
pkidspassword value must match the password set for the directory manager when 389 Directory Server was installed.The
pkitokenpassword value must be set to the CryptoHub identity password configured inside the <CRYPTO-OPR-PASS> tag in the fxpkcs11.cfg file.Text
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 using the CryptoHub.
The full path to the
ca.cfg file is required if you are not running the command from the directory where the ca.cfg file is saved.Shell
You will most likely see a warning message about manually adding a module while p11-kit is enabled. You can disregard this warning and press Enter to continue.
If the deployment is successful, an installation summary similar to the following will be presented after the command completes:
Shell
If the pkispawn command fails, you need to run the following command to delete the subsystem instance that was only partially created before re-attempting to run pkispawn.
Shell
View the keys and certificates
To view the keys and certificates that Dogtag created on the CryptoHub , use the PKCS11Manager utility packaged with the Futurex PKCS #11 module. Perform the following steps:In a terminal, navigate to the directory where the FXPKCS11 module is installed (
/usr/local/bin/fxpkcs11) and run PKCS11Manager by using the following command:Shell
This presents the following main menu:
Shell
Enter the password of the identity that is 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
The following steps use a Firefox web browser. The steps might vary when using a different browser, but the overall process is the same.
In Firefox, go to Preferences > Privacy & Security > Certificates and select [ View Certificates ].
Under the Your Certificates tab, select [ Import ] to import the CA Administrator PKCS #12 file (for example,
ca_admin_cert.p12). When it prompts for a password, enter the value that was configured for the pki_client_pkcs12_password define in the ca.cfg file.The location of the
caadmincert.p12 file is in the installation summary for the CA subsystem deployment.Access the CA subsystem
Perform the following steps to access the new CA subsystem in the browser:When submitting Certificate Signing Requests (CSRs) in Dogtag Certificate System, you must use both the Common Name and UID fields. If you submit a request with only the Common Name field completed, the request fails, and you receive an error stating that the Subject Name does not match.

