The pki match-rsa-key command configures a device to search for the RSA key pair associated with a specific certificate.
| Parameter | Description | Value |
|---|---|---|
| certificate-filename file-name | Specifies the name of a certificate file. | The value must be an existing certificate file name. |
Run this command to check the RSA key pair corresponding to a certificate. After configuration, the system searches for all the local RSA key pairs, compares them with the specified certificate and outputs the matched RSA key pair name once it is searched out.
# Configure a device to search for the RSA key pair that matches the certificate file local.cer.
<sysname> system-view [sysname] pki match-rsa-key certificate-filename local.cer Info: The file local.cer contains certificates 1. Info: Certificate 1 from file local.cer matches RSA key rsa2.key.