pki-pkcs12-key(1)

πŸ“¦
version 11.7.1 Β· 4 versions
, in centos-stream 9

πŸ’… pki-pkcs12-key β€” bestie's guide to PKCS #12 key wrangling πŸ’…

okay so this is the pki-pkcs12-key(1) page, straight outta the PKI PKCS #12 Key Management Commands manual, and it's literally the command-line interface for managing individual keys inside a PKCS #12 file. little keys, big responsibility πŸ—οΈβœ¨


🌸 NAME 🌸

pki-pkcs12-key β€” command-line interface for managing individual keys in PKCS #12 file.


✨ SYNOPSIS ✨

pki [CLI-options] pkcs12-key
pki [CLI-options] pkcs12-key-find [command-options]
pki [CLI-options] pkcs12-key-del key-ID [command-options]

πŸ¦‹ DESCRIPTION πŸ¦‹

The pki pkcs12-key commands are literally your group chat with a PKCS #12 file β€” they provide command-line interfaces to manage keys in a PKCS #12 file. no cap 🫢

  • pki [CLI-options] pkcs12-key-find [command-options] β€” this command is the one that lists keys in a PKCS #12 file. window shopping for keys, iconic.
  • pki [CLI-options] pkcs12-key-del key-ID [command-options] β€” this command is the one that deletes a key from a PKCS #12 file. bye bestie πŸ‘‹πŸ’€

πŸŽ€ OPTIONS πŸŽ€

The CLI options are described in pki(1). that's the whole section, she's short but she said what she said πŸ’…


🌈 OPERATIONS 🌈

To view available profile commands, type pki pkcs12-key. To view each command's usage, type pki pkcs12-key-<command> --help.

All pki pkcs12-key commands require a PKCS #12 file and its password, fr fr. here's the tea:

  • 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.

All pki pkcs12-key commands also require an NSS database and its password β€” yes, also, she's high maintenance and we love her for it 😭:

  • 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 keys in a PKCS #12 file

To list the keys in a PKCS #12 file:

$ pki <NSS database location> <NSS database password> pkcs12-key-find \
    <PKCS #12 file> <PKCS #12 password>

πŸ“ Deleting a key from a PKCS #12 file

To delete a key from a PKCS #12 file:

$ pki <NSS database location> <NSS database password> pkcs12-key-del <key ID> \
    <PKCS #12 file> <PKCS #12 password>

🧚 SEE ALSO 🧚


πŸ’– AUTHORS πŸ’–

Endi S. Dewata edewata@redhat.com. β€” absolute legend, we stan 🌟


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.


and that's the whole page, bestie 🫢 this lil slice of the PKI manual is dated Oct 28, 2016, page pki-pkcs12-key(1), and that's a wrap β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from