PKI-PKCS12-CERT(1)
π pki-pkcs12-cert(1) π
okay so bestie, this is a page out of the PKI PKCS #12 Certificate Management Commands manual, and it's literally the command-line interface for messing with individual certificates inside a PKCS #12 file. buckle up, it's giving admin-girlboss energy π
π NAME π
pki-pkcs12-cert β Command-line interface for managing individual certificates in PKCS #12 file.
β¨ SYNOPSIS β¨
pki [CLI-options] pkcs12-cert
pki [CLI-options] pkcs12-cert-find [command-options]
pki [CLI-options] pkcs12-cert-export nickname [command-options]
pki [CLI-options] pkcs12-cert-import nickname [command-options]
pki [CLI-options] pkcs12-cert-mod nickname [command-options]
pki [CLI-options] pkcs12-cert-del nickname [command-options]
π¦ DESCRIPTION π¦
The pki pkcs12-cert commands provide command-line interfaces to manage certificates in a PKCS #12 file. like, all of them. it's a whole little family of commands and honestly they ate πΈ
pki [CLI-options] pkcs12-cert-find [command-options] This command is to list certificates in a PKCS #12 file.
pki [CLI-options] pkcs12-cert-export nickname [command-options] This command is to export a certificate from a PKCS #12 file.
pki [CLI-options] pkcs12-cert-import nickname [command-options] This command is to import a certificate into a PKCS #12 file.
pki [CLI-options] pkcs12-cert-mod nickname [command-options] This command is to modify a certificate in a PKCS #12 file.
pki [CLI-options] pkcs12-cert-del nickname [command-options] This command is to delete a certificate from a PKCS #12 file.
β OPTIONS β
The CLI options are described in pki(1). that's the main character, go read her page too π«Ά
π₯ OPERATIONS π₯
To view available profile commands, type pki pkcs12-cert. To view each command's usage, type pki pkcs12-cert-<command> --help.
All pki pkcs12-cert commands require a PKCS #12 file and its password. no cap, that's non-negotiable. The PKCS #12 file can be specified with the --pkcs12-file parameter. The password can be specified either directly with the --pkcs12-password parameter, or in a file with the --pkcs12-password-file parameter. pick your fighter π
Some pki pkcs12-cert commands require an NSS database and its password. The NSS database location can be specified with the -d parameter (default: ~/.dogtag/nssdb). The NSS database password can be specified with the -c or the -C parameter.
πΈ Viewing certificates in a PKCS #12 file
To list the certificates in a PKCS #12 file:
$ pki pkcs12-cert-find <PKCS #12 file> <PKCS #12 password>
π§ Exporting a certificate from a PKCS #12 file
To export a certificate from a PKCS #12 file into a file in PEM format:
$ pki pkcs12-cert-export <nickname> <PKCS #12 file> <PKCS #12 password> <cert file>
The certificate file can be specified with the --cert-file parameter.
π Importing a certificate into a PKCS #12 file
To import a certificate including its key and trust flags from an NSS database into a PKCS #12 file:
$ pki <NSS database location> <NSS database password> pkcs12-cert-import <nickname> \
<PKCS #12 file> <PKCS #12 password>
If the PKCS #12 file does not exist, it will be created automatically. If the PKCS #12 file already exists, the certificate will be added into the file. it's flexible like that, we love a self-starter β¨
The trust flags can be overwritten with the --trust-flags parameter. If the key is not needed, specify the --no-key parameter.
π Modifying a certificate in a PKCS #12 file
To modify the trust flags of a certificate in a PKCS #12 file:
$ pki pkcs12-cert-mod <nickname> <PKCS #12 file> <PKCS #12 password> <trust flags>
The trust flags can be specified with the --trust-flags parameter.
π Deleting a certificate from a PKCS #12 file
To delete a certificate and its key from a PKCS #12 file:
$ pki pkcs12-cert-del <nickname> <PKCS #12 file> <PKCS #12 password>
β οΈ bestie this one deletes the certificate AND its key, so maybe double-check that nickname before you hit enter, iykyk π
π SEE ALSO π
π AUTHORS π
Endi S. Dewata <edewata@redhat.com>.
π COPYRIGHT π
Copyright (c) 2016 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.
okay that's the whole page, you're officially educated π one last lil sign-off: this was PKI, dated Oct 28, 2016 β periodt, go manage some certificates bestie π¦π
π¦ 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