1pki-pkcs12-key(1) PKI PKCS #12 Key Management Commands pki-pkcs12-key(1)
2
3
4
6 pki-pkcs12-key - Command-Line Interface for managing individual keys in
7 PKCS #12 file.
8
9
11 pki [CLI options] pkcs12-key
12 pki [CLI options] pkcs12-key-find [command options]
13 pki [CLI options] pkcs12-key-del <key ID> [command options]
14
15
17 The pki pkcs12-key commands provide command-line interfaces to manage
18 keys in a PKCS #12 file.
19
20
21 pki [CLI options] pkcs12-key-find [command options]
22 This command is to list keys in a PKCS #12 file.
23
24 pki [CLI options] pkcs12-key-del <key ID> [command options]
25 This command is to delete a key from a PKCS #12 file.
26
27
29 The CLI options are described in pki(1).
30
31
33 To view available profile commands, type pki pkcs12-key. To view each
34 command's usage, type pki pkcs12-key-<command> --help.
35
36 All pkcs12-key commands require a PKCS #12 file and its password. The
37 PKCS #12 file can be specified with the --pkcs12-file parameter. The
38 password can be specified either directly with the --pkcs12-password
39 parameter, or in a file with the --pkcs12-password-file parameter.
40
41 All pkcs12-key commands also require an NSS database and its password.
42 The NSS database location can be specified with the -d parameter
43 (default: ~/.dogtag/nssdb). The NSS database password can be specified
44 with the -c or the -C parameter.
45
46
47 Viewing keys in a PKCS #12 file
48 To list the keys in a PKCS #12 file:
49
50 pki <NSS database location> <NSS database password> pkcs12-key-find
51 <PKCS #12 file> <PKCS #12 password>
52
53
54 Deleting a key from a PKCS #12 file
55 To delete a key from a PKCS #12 file:
56
57 pki <NSS database location> <NSS database password> pkcs12-key-del <key
58 ID> <PKCS #12 file> <PKCS #12 password>
59
60
62 Endi S. Dewata <edewata@redhat.com>.
63
64
66 Copyright (c) 2016 Red Hat, Inc. This is licensed under the GNU General
67 Public License, version 2 (GPLv2). A copy of this license is available
68 at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
69
70
72 pki-pkcs12(1)
73
74
75
76version 10.3 Oct 28, 2016 pki-pkcs12-key(1)