Install RHCS
Perform the following steps to install Red Hat Certificate System and prerequisites:1
RHCS requires Red Hat Directory Server (RHDS), which serves as an internal repository for certificate requests, certificates, and so on. Enable the RHCS and RHDS repositories with the following command:
2
Install the directory server packages:
3
Run the directory server configuration script:
4
Enable specific versions of the
maven and pki-deps modules to support successful redhat-pki installation in the next step.5
Refresh the
dnf cache:6
Install the certificate system packages:
Modify SELinux
To enable CryptoHub communication while SELinux is enforcing, perform these steps:1
Reset the context for the Futurex PKCS #11 library:
2
Apply the context changes:
3
Set the context for the configuration file:
4
Apply the context to the configuration file:
Create a CA subsystem instance
Thepkispawn command line tool installs and configures a new PKI instance. It eliminates the need for separate installation and configuration steps, and you can run it 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 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 RHCS subsystems (CA, KRA, OCSP, TKS, TPS) to use the CryptoHub, but this integration guide focuses on the Certificate Authority (CA) for brevity.
Prepare an override configuration file
Create an override configuration file to specify HSM parameters for the CA subsystem:1
Create the override file:Populate the file with the following template. Set the
pki_instance_name, pki_token_password, and pki_security_domain_name values to your specific values. Keep all other values unchanged.Text
Run the pkispawn utility
Perform the following steps to run the pkispawn utility:1
Deploy the CA subsystem with the CryptoHub using your override configuration:
If the deployment succeeds, an installation summary similar to the following displays after the command completes:
Validation
After successful deployment, verify the following:- The CA subsystem service is active:
systemctl status pki-tomcatd@pki-tomcat.service - The certificate file exists at:
/root/.dogtag/pki-tomcat/ca_admin_cert.p12 - The CA web interface is accessible:
https://<hostname>:8443/ca
Import the PKCS #12 file
Import the CA administrator certificate into your browser to authenticate:1
In Firefox, go to Settings > Privacy & Security > Certificates and select [ View Certificates ].
2
Under the Your Certificates tab, select [ Import ] to load the CA Administrator PKCS #12 file (
ca_admin_cert.p12).3
Enter the
pki_client_pkcs12_password you set during the CA subsystem deployment.Access the CA subsystem
Access the CA web interface and submit Certificate Signing Requests:1
Open your browser and navigate tohttps://localhost.localdomain:8443/ca.

