show crypto pki certificate

Syntax

show crypto pki certificate [<CERT-NAME> [plaintext | pem]]

Description

Shows a list of all configured leaf certificates, or detailed information for a specific leaf certificate.

Command context

Manager (#)

Parameters

<CERT-NAME>
Specify the name of a leaf certificate. Range: 1 to 32 alphanumeric characters (excluding ").
plaintext
Shows certificate information in plain text.
pem
Shows certificate information in PEM format.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Showing a list of all configured leaf certificates:

switch# show crypto pki certificate

Certificate Name                 Cert Status    Associated Applications
-------------------------------- -------------- --------------------------------
local-cert                       installed      https-server, syslog-client, hsc
leaf-cert                        installed      none
xhsccert                         invalid        none

Showing detailed information for leaf certificate cert1:

switch# show crypto pki certificate leaf-cert plaintext

  Certificate Name: my-cert-1
  Associated Applications:
    none
  Certificate Status: enrolled
    Data:
        Version: 1 (0x0)
        Serial Number: 14529416756121781768 (0xc9a2db8f3e3f4608)
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: OU=DeviceTrust, OU=Operations, O=Site, C=US,
                CN=Site Trusted Computing Root CA 1.0
        Validity
            Not Before: Jan 12 23:36:57 2018 GMT
            Not After : Nov  1 23:36:57 2020 GMT
        Subject: C=US, ST=CA, L=Rocklin, O=Comp, OU=Site,
                 CN=Cert1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:a0:cd:ef:1b:f9:b8:bd:39:fc:7a:0e:00:17:ff:
                    2b:72:d8:4e:d4:df:49:36:ca:3a:f9:05:05:d7:e3:
                    d1:97:29:71:e6:33:b8:bb:8e:f0:ee:a6:e4:4a:f8:
                    ...
                    fe:dd:d9:a0:af:59:47:25:b4:34:06:af:03:1d:33:
                    30:c3:85:fe:5c:e7:19:7f:ff:3a:b2:21:b8:e8:ed:
                    83:09
                Exponent: 65537 (0x10001)
    Signature Algorithm: sha256WithRSAEncryption
         39:f6:03:86:03:d9:05:61:39:25:5f:0d:75:cc:05:ae:04:7e:
         4c:a3:13:0b:f0:1e:af:68:0e:40:9f:ed:48:b6:5e:56:8c:53:
         46:5b:c9:a4:e0:b0:bc:31:4b:a7:5d:0a:ed:7c:9c:f6:bf:1e:
         ...

         39:f5:26:58:68:e2:13:ec:94:ac:60:8e:4b:b0:ba:45:cf:d6:
         6a:4b:9f:7d:ae:3f:e5:2e:81:fe:ac:b3:65:44:35:47:a5:2f:
         89:e7:58:a0