Chapter 23. Subsystem control and maintenance
This chapter provides information on how to control (start, stop, restart, and status check) a Red Hat Certificate System subsystem, as well as general maintenance (health check) recommendation.
23.1. Starting, stopping, restarting and obtaining status Copy linkLink copied to clipboard!
Red Hat Certificate System subsystem instances can be stopped and started using the systemctl
utility on Red Hat Enterprise Linux {VER}.
You can also use the pki-server
alias to start and stop instances: pki-server <command> <instance>
is an alias to systemctl <command> pki-tomcatd@<instance>.service
.
To start an instance:
systemctl start unit_file@instance_name.service pki-server start instance_name
# systemctl start unit_file@instance_name.service # pki-server start instance_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To stop an instance:
systemctl stop unit_file@instance_name.service pki-server stop instance_name
# systemctl stop unit_file@instance_name.service # pki-server stop instance_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To restart an instance:
systemctl restart unit_file@instance_name.service pki-server restart instance_name
# systemctl restart unit_file@instance_name.service # pki-server restart instance_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To display the status of an instance:
systemctl status unit_file@instance_name.service
# systemctl status unit_file@instance_name.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
unit_file has one of the following values:
-
pki-tomcat
: with watchdog disabled -
pki-tomcat-nuxwdog
: with watchdog enabled
23.2. Subsystem health check Copy linkLink copied to clipboard!
It is important for administrators to periodically monitor possible failures, such as the following:
- Audit failure caused by a full disk
- Signing failure caused by HSM connection issue
- LDAP server connection issues
- And so on
Self-tests can also be run by demand as described in Section 15.8, “Running self-tests”.
PKI Healthcheck is a command-line tool that helps find issues that may impact the health of your Certificate System environment. If needed, this tool can report to the Healthcheck tool present in Red Hat Identity Management.
23.2.1. PKI Healthcheck test modules Copy linkLink copied to clipboard!
PKI Healthcheck consists of independent modules which test for:
Certificate sync between CS.cfg and NSS database:
Checks whether the system certificates in
CS.cfg
(located in/var/lib/pki/<instance>/<subsystem>/conf/CS.cfg
) and NSS database (located in/var/lib/pki/<instance>/alias/
) match. Else, the Certificate Authority (CA) fails to start.System certificate expiry:
Checks the expiry status of the installed system certificates (See System Certificates for more information).
System certificate trust flags:
Checks whether the installed system certificates carry the correct Trust flags (See System Certificates for more information).
Subsystem connectivity check:
Checks whether a subsystem is running and able to respond to requests.
Subsystem clones connectivity and data check:
Checks simple connectivity and data sanity for a set of clones configured within a given CS subsystem. A given CA subsystem’s security domain is consulted to identify clones that have been set. The check then proceeds to reach out to each clone and verify data sanity where applicable.
23.2.2. PKI Healthcheck configuration Copy linkLink copied to clipboard!
The PKI Healthcheck tool configuration is stored at /etc/pki/healthcheck.conf
. It looks like the following:
23.2.3. Running PKI Healthcheck Copy linkLink copied to clipboard!
To perform a health check, run the pki-healthcheck
command. You can also execute a specific check. For example:
pki-healthcheck --source pki.server.healthcheck.meta.csconfig --check DogtagCertsConfigCheck
# pki-healthcheck --source pki.server.healthcheck.meta.csconfig --check DogtagCertsConfigCheck
For more information on the possible options, see the man page: man pki-healthcheck
.
23.2.4. PKI Healthcheck output formats Copy linkLink copied to clipboard!
Healthcheck generates the following outputs, which you can set using the --output-type:
- By default, machine-readable output in JSON format (json).
- Alternatively, human-readable output (human).
You can specify an alternative file destination with the --output-file option.
23.2.5. PKI Healthcheck results Copy linkLink copied to clipboard!
The report consists of a message describing what was run and the status. Each health check module returns one of the following results:
- SUCCESS
- Configured as expected, the check executed and found no issue
- WARNING
- Not an error, but worth keeping an eye on or evaluating (e.g. a certificate will expire soon)
- ERROR
- Not configured as expected, something is wrong but your server is probably still working (e.g. a clone conflict)
- CRITICAL
- Not configured as expected, with a high possibility for impact (e.g. a service is not started, certificates are expired, etc.)
If the status is not successful, the message may include additional information or recommendations, which can be used by the admin to correct the issue (e.g. a file has the wrong permissions, expected X and got Y).