pki-healthcheck(8)
π pki-healthcheck(8) β the pki-healthcheck CLI, but make it make sense
okay bestie, so you know how a PKI installation is basically a whole ecosystem of moving parts? yeah. this is the pki-healthcheck command-line interface, and it's here to check the health of your PKI installation before things go full chaos-mode. π©Ίβ¨
β¨ SYNOPSIS β¨
pki-healthcheck [CLI-options]
π¦ DESCRIPTION π¦
A PKI installation can be complex β like, genuinely complex β so spotting a real or potential issue can be super difficult and take a lot of analysis. π This tool is here to reduce that burden: it goes out and tries to identify issues in advance so you can correct them, ideally before the issue becomes critical. no cap, that's the whole vibe. π
π ORGANIZATION π
The areas of the system to check are logically grouped together. The way they group it? It's called a source. A source consists of one or more checks. π
A check is as atomic as possible β that's on purpose, to limit the scope and complexity. keep it cute, keep it small. π§
Each check returns a result, and that result is one of WARNING, ERROR, CRITICAL or SUCCESS. Returning SUCCESS tells you the check was done and was deemed correct. slay. β
Upon failure, the output will include the name of the source and the name of the check that detected the failure, along with a message and name/value pairs indicating the problem. And if a check can't make a final determination? It throws WARNING so it can be examined. π
π OPTIONS π
πΈ COMMANDS πΈ
--list-sourcesβ Display a list of the available sources and the checks associated with those sources. literally the map of what's checkable. πΊοΈ
π OPTIONAL ARGUMENTS π
--source=SOURCEβ Execute one or more checks within this given source.--check=CHECKβ Execute this particular check within a source. Bestie, a source must be supplied as well with this option. both or nothing. π«Ά--output-type=[json|human]β Set the output type. Defaults toJSON.--failures-onlyβ ExcludeSUCCESSresults on output. only the drama, please. π--severity=SEVERITYβ Only report errors in the requested severity ofSUCCESS,WARNING,ERRORorCRITICAL. This can be provided multiple times to search on multiple levels. stack 'em. π₯--debugβ Generate additional debugging output.
β JSON OUTPUT β
The output is displayed as a list of result messages for each check executed in JSON format. This could be input for a monitoring system. very main character energy for your dashboards. π
--output-file=FILENAMEβ Write the output to this filename rather than stdout.--indent=INDENTβ Pretty-print the JSON with this indention level. This can make the output more human-readable. β¨
π HUMAN-READABLE OUTPUT π
The results are displayed in a more human-readable format.
--input-file=FILENAMEβ Take as input a JSON results output and convert it to a more human-readable form.
π EXIT STATUS π
0β if all checks were successful β1β if any one check failed or the command failed to execute properly π
π FILES π
/etc/pki/healthcheck.conf
π§ NOTES π§
π CHECKS INCLUDED π
- Certificate sync between CS.cfg and NSS database β Checks whether the system certificates in
CS.cfgand NSS database are the same. π - System certificate expiry β Checks the expiry status of the installed system certificates. β³
- System certificate trust flags β Checks whether the installed system certificates carry the correct Trust flags. π©
- Subsystem connectivity check β Checks whether a subsystem is running and able to respond to requests. π‘
π₯ EXAMPLES π₯
Execute healthcheck with the default JSON output:
pki-healthcheck
Execute healthcheck with a prettier JSON output:
pki-healthcheck --indent 2
Execute healthcheck and only display errors:
pki-healthcheck --failures-only
Execute healthcheck and display results in human-readable format:
pki-healthcheck --output-format human
Execute healthcheck and write results to a file:
pki-healthcheck --output-file /var/log/pki/healthcheck/results.json
Display in the previous report in a human-readable format:
pki-healthcheck --output-format human --input-file /var/log/pki/healthcheck/results.json
side note, bestie: yes, the examples literally say --output-format β that's exactly how it's written in the manual, so I'm keeping it character for character. not me changing it. π
π«Ά AUTHORS π«Ά
Dinesh Prasanth M K <dmoluguw@redhat.com>
π COPYRIGHT π
Copyright (c) 2020 Red Hat, Inc. This is licensed under the GNU General Public License, version 2 (GPLv2). A copy of this license is available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt β¨http://www.gnu.org/licenses/old-licenses/gpl-2.0.txtβ©.
and that's the whole page, bestie π β brought to you by PKI, the January 16, 2020 edition of pki-healthcheck(8). go check your health (your PKI's health, specifically). mwah πβ¨
π¦ where this page comes from
- centos-stream 9: idm-pki-server 11.7.1-1.el9 Β· GPL-2.0-only AND LGPL-2.0-only
- centos-stream 9: pki-server 11.2.0-0.2.beta1.el9 Β· GPLv2 and LGPLv2
- ubuntu jammy: pki-server 11.0.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms