display pki certificate-filename

Function

The display pki match-rsa-key certificate-filename command displays the RSA key pairs associated with specific certificates.

The display pki match-sm2-key certificate-filename command displays the SM2 key pair corresponding to a certificate file.

Format

display pki { match-rsa-key | match-sm2-key } certificate-filename file-name

Parameters

Parameter Description Value
file-name

Specifies the name of a certificate file.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
pki debug

Usage Guidelines

Usage Scenario

This command is used to view the RSA/SM2 key pairs associated with specific certificates. For example, before you delete an RSA/SM2 key pair, you need to check whether the RSA/SM2 key pair is used by a certificate. If the RSA/SM2 key pair is used by the certificate, deleting the RSA/SM2 key pair causes the certificate to be unavailable.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the SM2 key pair corresponding to the certificate file named rt2.pem.
<HUAWEI> display pki match-sm2-key certificate-filename rt2.pem
Info:The name of the key used in certificate file rt2.pem is huawei_Host.
# Check the RSA key pair associated with certificate rt2.pem.
<HUAWEI> display pki match-rsa-key certificate-filename rt2.pem
Info:The name of the key used in certificate file rt2.pem is huawei_Host.
Table 1 Description of the display pki certificate-filename command output
Item Description
Certificate File

Indicates the certificate file name.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >