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.
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.
The actual command output varies according to the device. The command output here is only an example.
<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.
<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.
Item | Description |
---|---|
Certificate File | Indicates the certificate file name. |