pki-client(1)
π pki-client(1) π
okay bestie, welcome to pki-client(1) from the PKI NSS Database Management Commands family π this page is your group chat with the NSS database on a PKI client β and yes, it ate.
π NAME π
pki-client β the command-line interface for managing the NSS database on a PKI client. main character energy for your certs, fr fr.
β¨ SYNOPSIS β¨
pki [CLI-options] client
pki [CLI-options] client-init [command-options]
pki [CLI-options] client-cert-find [command-options]
pki [CLI-options] client-cert-request [subject-DN] [command-options]
pki [CLI-options] client-cert-import [nickname] [command-options]
pki [CLI-options] client-cert-mod nickname [command-options]
pki [CLI-options] client-cert-show nickname [command-options]
pki [CLI-options] client-cert-del nickname [command-options]
πΈ DESCRIPTION πΈ
The pki-client commands give you command-line interfaces to manage the NSS database on the client's machine. lowkey powerful, highkey useful π«Ά
pki [CLI-options] clientβ lists available client commands. It's giving directory of options, bestie.pki [CLI-options] client-init [command-options]β creates a new NSS database for the client. Fresh database, fresh me β¨pki [CLI-options] client-cert-find [command-options]β lists certificates in the NSS database. Cert census, no cap.pki [CLI-options] client-cert-request [subject-DN] [command-options]β generates and submits a certificate request. Shoot your shot πpki [CLI-options] client-cert-import [nickname] [command-options]β imports a certificate into the NSS database. Welcome to the collection πpki [CLI-options] client-cert-mod nickname [command-options]β modifies a certificate in the NSS database. Glow-up era.pki [CLI-options] client-cert-show nickname [command-options]β views a certificate in the NSS database. Let her be seen πpki [CLI-options] client-cert-del nickname [command-options]β deletes a certificate from the NSS database. bye bestie π
π OPTIONS π
The CLI options are described in pki(1). That's the whole vibe β go read the parent page, bestie π
π OPERATIONS π
To view available client commands, type pki client. To view each command's usage, type pki client-<command> --help.
To create a new database execute the following command:
$ pki -d <NSS database location> -c <NSS database password> client-init
To list certificates in the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-find
To request a certificate:
$ pki -d <NSS database location> -c <NSS database password> client-cert-request [subject DN]
The subject DN requirement depends on the certificate profile being requested. Some profiles may require the user to provide a subject DN in a certain format. Some other profiles may generate their own subject DN. profile-dependent behavior, iykyk π¦
Certain profiles may also require additional authentication. To authenticate, a username and a password can be specified using the --username and --password options, respectively. If the subject DN is not specified the CLI may use the username to generate a default subject DN "UID=username".
To import a certificate from a file into the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-import [*nickname*] \
--cert <path>
To import a CA certificate from a file into the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-import <nickname> \
--ca-cert <path>
To import certificates and private keys from a PKCS #12 file into the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-import \
--pkcs12 <path> --pkcs12-password <password>
To import a certificate from CA server into the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-import <nickname> \
--serial <serial number>
To import a CA certificate from CA server into the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-import <nickname> \
--ca-server
To modify a certificate's trust flags in the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-mod <nickname> \
--trust <trust flags>
To display a certificate in the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-show <nickname>
To export a certificate from the NSS database into a PEM file:
$ pki -d <NSS database location> -c <NSS database password> client-cert-show <nickname> \
--cert <path>
To export a certificate chain with the private key from the NSS database into a PKCS #12 file:
$ pki -d <NSS database location> -c <NSS database password> client-cert-show <nickname> \
--pkcs12 <path> --pkcs12-password <password>
To export a certificate chain with the private key with a password file:
$ pki -d <NSS database location> -c <NSS database password> client-cert-show <nickname> \
--pkcs12 <path> --pkcs12-password-file <path>
To export a client certificate with the private key from the NSS database into a PEM file:
$ pki -d <NSS database location> -c <NSS database password> client-cert-show <nickname> \
--client-cert <path>
To delete a certificate from the NSS database:
$ pki -d <NSS database location> -c <NSS database password> client-cert-del <nickname>
π«Ά AUTHORS π«Ά
Ade Lee <alee@redhat.com>, Endi Dewata <edewata@redhat.com>, and Matthew Harmsen <mharmsen@redhat.com>. author icons, honestly πΈ
β COPYRIGHT β
Copyright (c) 2014 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.
β¨ big sparkly sign-off from PKI β this page is dated May 5, 2014, and it's your pki-client(1) manual, periodt πππ¦
π¦ 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms