logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pki-pkcs12-cert - Command-line interface for managing individual certificates in PKCS #12 file.

Authors

       Endi S. Dewata lt;edewata@redhat.comgt;.

Description

       The pkipkcs12-cert commands provide command-line interfaces to manage certificates in a PKCS #12 file.

       pki [CLI-options] pkcs12-cert-find [command-options]
           This command is to list certificates in a PKCS #12 file.

       pki [CLI-options] pkcs12-cert-exportnickname [command-options]
           This command is to export a certificate from a PKCS #12 file.

       pki [CLI-options] pkcs12-cert-importnickname [command-options]
           This command is to import a certificate into a PKCS #12 file.

       pki [CLI-options] pkcs12-cert-modnickname [command-options]
           This command is to modify a certificate in a PKCS #12 file.

       pki [CLI-options] pkcs12-cert-delnickname [command-options]
           This command is to delete a certificate from a PKCS #12 file.

Name

       pki-pkcs12-cert - Command-line interface for managing individual certificates in PKCS #12 file.

Operations

       To  view  available  profile  commands,  type  pkipkcs12-cert.   To view each command's usage, type pkipkcs12-cert-lt;commandgt;--help.

       All pkipkcs12-cert commands require a PKCS #12 file  and  its  password.   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.

       Some pkipkcs12-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.

   ViewingcertificatesinaPKCS#12file
       To list the certificates in a PKCS #12 file:

              $ pki pkcs12-cert-find <PKCS #12 file> <PKCS #12 password>

   ExportingacertificatefromaPKCS#12file
       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.

   ImportingacertificateintoaPKCS#12file
       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.

       The trust flags can be overwritten with the --trust-flags parameter.  If the key is not  needed,  specify
       the --no-key parameter.

   ModifyingacertificateinaPKCS#12file
       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.

   DeletingacertificatefromaPKCS#12file
       To delete a certificate and its key from a PKCS #12 file:

              $ pki pkcs12-cert-del <nickname> <PKCS #12 file> <PKCS #12 password>

Options

       The CLI options are described in pki(1).

See Also

pki-pkcs12(1)

Synopsis

pki [CLI-options] pkcs12-certpki [CLI-options] pkcs12-cert-find [command-options]
       pki [CLI-options] pkcs12-cert-exportnickname [command-options]
       pki [CLI-options] pkcs12-cert-importnickname [command-options]
       pki [CLI-options] pkcs12-cert-modnickname [command-options]
       pki [CLI-options] pkcs12-cert-delnickname [command-options]

See Also