Install the Dogtag packages
1
Install the Dogtag packages by using the following command:
Shell
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:1
Run the following command to log in as the root user:
Shell
2
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
3
Create a directory for storing the 389 Directory Server configuration file:
Shell
4
Create a configuration file named setup.inf in the
/etc/389-ds directory with the [General] and [slapd] sections configured as follows:Shell
5
Run the directory server installation script, selecting the defaults or customizing as desired:
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:1
Create the override configuration file for the CA subsystem.
Shell
2
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
3
After you have finished editing, save the file.
Run the pkispawn utility
Perform the following steps to run the pkispawn utility:1
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.
2
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:1
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
2
Enter
1 to find all objects, and select the Enter key.3
Enter
2 to log in, and select the Enter key.4
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.
5
Enter
5 to find objects, and select the Enter key.6
Enter
1 to find all objects, and select the Enter key. Information prints for all keys and certificates that the connecting identity has access to.Dogtag PKI creates 15 objects in CryptoHub for a CA subsystem deployment.
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.
1
In Firefox, go to Preferences > Privacy & Security > Certificates and select [ View Certificates ].
2
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:1
Access the Dogtag Certificate System subsystem console by going to the following URL:
None
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.

