The cmp request rsa local-key-pair command configures an RSA key pair to be used by a device to request a certificate through CMPv2.
The undo cmp request rsa local-key-pair command cancels the configuration.
By default, no RSA key pair is configured to be used by a device to request a certificate through CMPv2.
Parameter | Description | Value |
---|---|---|
key-name |
Specifies the name of an RSA key pair. |
The value is a case-insensitive string of 1 to 31 characters. |
regenerate |
Indicates that RSA key pairs are updated during a certificate update. |
- |
key-bit |
Specifies the number of bits in an RSA key pair generated during a certificate update. |
The value is an integer ranging from 2048 to 4096. The default value is 2048. |
Usage Scenario
To apply for a certificate through CMPv2, you need to run the cmp request rsa local-key-pair command in the CMP session view.
Configuration Impact
Note the following points when you use the cmp request rsa local-key-pair command:
Precautions
One RSA key pair can be referenced by only one CMP session or PKI domain.
<HUAWEI> system-view [~HUAWEI] pki domain domain1 [*HUAWEI-pki-domain-domain1] pki cmp session session1 [*HUAWEI-pki-domain-domain1-pki-cmp-session-session1] cmp request rsa local-key-pair key1 regenerate