pki-user-cert(1)
π pki-user-cert β the manual page, but make it make sense
okay so bestie, you're looking at the pki-user-cert page from the PKI User Certificate Management Commands collection, and honestly? it's giving "manage user certs from the command line" and nothing less. let's get into it π
β¨ NAME β¨
pki-user-cert β the command-line interface for managing PKI user certificates. that's the whole vibe. π
π¦ SYNOPSIS π¦
pki [CLI-options] <subsystem>-user-cert
pki [CLI-options] <subsystem>-user-cert-find user-ID [command-options]
pki [CLI-options] <subsystem>-user-cert-show user-ID cert-ID [command-options]
pki [CLI-options] <subsystem>-user-cert-add user-ID [command-options]
pki [CLI-options] <subsystem>-user-cert-del user-ID cert-ID [command-options]
πΈ DESCRIPTION πΈ
so the pki <subsystem>-user-cert commands are your little command-line besties for managing user certificates on whichever subsystem you point them at. main character energy β¨
the valid subsystems are ca, kra, ocsp, tks, and tps. no cap, those are the only ones.
pki [CLI-options] <subsystem>-user-certβ lists the available user certificate commands for the subsystem. it's the "what can I even do here" command π«Άpki [CLI-options] <subsystem>-user-cert-find user-ID [command-options]β lists the certificates owned by the subsystem user. yes, plural, it's a whole list.pki [CLI-options] <subsystem>-user-cert-show user-ID cert-ID [command-options]β shows you the details of a certificate owned to the subsystem user. peek behind the curtain vibes πpki [CLI-options] <subsystem>-user-cert-add user-ID [command-options]β adds a certificate to the subsystem user. new cert drop π₯pki [CLI-options] <subsystem>-user-cert-del user-ID cert-ID [command-options]β deletes a certificate from the subsystem user. bye bestie π
β OPTIONS β
the CLI options live in pki(1) β that's the page to read, iykyk. this page isn't re-listing them, so don't come for me.
π OPERATIONS π
wanna see what user certificate commands you actually have? type pki <subsystem>-user-cert. wanna see how a specific command works? type pki <subsystem>-user-cert-<command> --help and it will explain itself, iconic behavior honestly.
π¨ important caveat, do not skip: all user certificate commands must be executed as the subsystem administrator. like, ALL of them. no exceptions, fr fr.
here's the stuff in action π
find certs owned by a CA user:
$ pki <CA admin authentication> ca-user-cert-find testuser
page the results by specifying the (0-based) index of the first entry to return and the max number of entries returned:
$ pki <CA admin authentication> ca-user-cert-find testuser --start 20 --size 10
the command above will return entries #20 to #29. 0-based indexing really said "I'm gonna keep you on your toes" π
show a cert owned by a CA user β pass the user ID and the certificate ID:
$ pki <CA admin authentication> ca-user-cert-show testuser \
"2;11;CN=CA Signing Certificate,O=EXAMPLE;UID=testuser"
add a cert to a CA user from a file β pass the user ID and the input file:
$ pki <CA admin authentication> ca-user-cert-add testuser --input testuser.crt
add a cert to a CA user from the certificate repository β pass the user ID and the serial number:
$ pki <CA admin authentication> ca-user-cert-add testuser --serial 0x80
delete a cert from a CA user β pass the user ID and the certificate ID:
$ pki <CA admin authentication> ca-user-cert-del testuser \
"2;11;CN=CA Signing Certificate,O=EXAMPLE;UID=testuser"
π§ AUTHORS π§
Endi S. Dewata <edewata@redhat.com>. credit where credit is due, periodt π
π COPYRIGHT π
Copyright (c) 2015 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. legal bestie has entered the chat π
okay that's the whole page!! π this one came from the PKI collection, dated Jun 3, 2015, and it's page pki-user-cert(1) β go forth and manage those certs, you gorgeous sysadmin π«Άβ¨
π¦ where this page comes from
- centos-stream 9: idm-pki-tools 11.7.1-1.el9 Β· GPL-2.0-only AND LGPL-2.0-only
- centos-stream 9: pki-tools 11.2.0-0.2.beta1.el9 Β· GPLv2 and LGPLv2
- ubuntu jammy: pki-tools 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