Skip to main content
This tutorial walks system administrators through installing Red Hat Certificate System (RHCS), configuring SELinux for CryptoHub integration, preparing a pkispawn override file, deploying a CA subsystem, and importing the administrator certificate. It also includes browser configuration for access.

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.
The Red Hat recommended procedure for spawning a subsystem that uses an HSM is to create an override configuration file containing the parameters necessary to use the HSM as its token. Any parameter settings in this file override the parameter settings in the 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.
The pkitokenpassword must match the CryptoHub identity password from the <CRYPTO-OPR-PASS> tag in fxpkcs11.cfg.
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.
When submitting Certificate Signing Requests (CSRs) in RHCS, the Common Name and UID fields are both required. If you submit a request with only the Common Name field, the request fails, and you receive an error stating that the Subject Name does not match.

Next steps

For detailed CSR submission guidance, see: Red Hat Certificate System Administration Guide.