The sm2 local-key-pair command configures the SM2 key pair used to request a certificate in an offline mode.
The undo sm2 local-key-pair command deletes the SM2 key pair used to request a certificate in an offline mode.
By default, the system does not configure the SM2 key pair used to request a certificate in an offline mode.
| Parameter | Description | Value |
|---|---|---|
| key-name | Specifies the name of the SM2 key pair. | The value must be an existing SM2 key pair name. |
Usage Scenario
The PKI entity that requests a certificate from the CA in offline PKCS#10 mode must contain a public key. Run this command to configure the SM2 key pair.
Prerequisites
The SM2 key pair for certificate application has been created using the pki sm2 local-key-pair create command or the SM2 key pair has been imported to the memory using the pki import sm2-key-pair command.
Precautions
An SM2 key pair can be specified to only one PKI.