Skip to content

PKI Server CLI

Endi S. Dewata edited this page Nov 9, 2021 · 5 revisions

Overview

The pki-server command is a tool for managing PKI servers on the local machine. The command does not require an authentication, but it can only be run by the system administrator.

Server Management Commands

NSS Management Commands

Subsystem Management Commands

Other Commands

Issues

Due to OpenLDAP changes in Fedora 29 Python is no longer able to use NSS database to establish an SSL LDAP connection. This issue might be affecting the following commands:

  • pki-server ca-cert-request-find

  • pki-server ca-cert-request-show

  • pki-server subsystem-cert-request-find

  • pki-server db-upgrade

  • pki-server cert-update

  • pki-server cert-fix

  • pki-server cert-create

See also:

Workaround #1: Export CA Certificate Chain

Prior to executing the above commands export the CA signing certificate chain from the NSS database into individual certificate files, for example:

$ certutil -L -d /etc/pki/pki-tomcat/alias -n ca_signing -a > /etc/pki/pki-tomcat/alias/ca_signing.crt

Then execute the following command to generate the hash files for the certificate files:

$ openssl rehash /etc/pki/pki-tomcat/alias

Workaround #2: Disable SSL LDAP Connection

Prior to executing the above commands, disable the SSL LDAP connection first, then it can be reenabled again later.

Clone this wiki locally