The pki import sm2-key-pair command imports an SM2 key pair to the memory in manual update mode.
The pki import rsa-key-pair command imports an RSA key pair to the memory in manual update mode.
Parameter | Description | Value |
---|---|---|
keypair-name |
Specifies the name of an SM2 or RSA key pair. |
The value is a string of 1 to 31 characters. |
der key-filename |
Specifies the name of a DER private key file. |
The value is a string of 1 to 63 characters. |
pem key-filename |
Specifies the name of a PEM private key file. |
The value is a string of 1 to 63 characters. |
password password |
Specifies the password of a PEM private key file. The password must contain at least two types of the following characters: uppercase letters, lowercase letters, digits, and special characters. The password must contain at least eight characters. |
The value is a string of 1 to 31 case-sensitive characters in plain text or 20 to 432 case-sensitive characters in ciphertext. |