Skip to content

PKI Server Subsystem User Certificate CLI

Endi S. Dewata edited this page Apr 27, 2023 · 5 revisions

Overview

The pki-server <subsystem>-user-cert provides a way to manage user certificates in subsystem database when PKI server is offline. The certificates can be used for client certificate authentication. These commands can only be executed by the system administrator.

Listing Subsystem User Certificates

To list subsystem user certificates, specify the user ID:

$ pki-server <subsystem>-user-cert-find testuser
  Cert ID: 2;40906138576323294556013286889651288237;CN=CA Signing Certificate,O=EXAMPLE;CN=Test User,E=testuser@example.com,O=EXAMPLE
  Version: 2
  Serial Number: 0x1ec63c581a462361700bf8ceedc5b8ad
  Issuer: CN=CA Signing Certificate,O=EXAMPLE
  Subject: CN=Test User,E=testuser@example.com,O=EXAMPLE

Availability: Since PKI 11.4

Adding Subsystem User Certificate

To add a subsystem user certificate, specify the user ID and the certificate file:

$ pki-server <subsystem>-user-cert-add testuser --cert testuser.crt

Alternatively, the certificate can be provided via standard input:

$ cat testuser.crt | pki-server <subsystem>-user-cert-add testuser

Removing Subsystem User Certificate

To remove a subsystem user certificate, specify the user ID and the certificate ID:

$ pki-server <subsystem>-user-cert-del \
    testuser \
    "2;40906138576323294556013286889651288237;CN=CA Signing Certificate,O=EXAMPLE;CN=Test User,E=testuser@example.com,O=EXAMPLE"

Availability: Since PKI 11.5

Clone this wiki locally