The pki import built-in-ca rsa-key-pair command imports an RSA key pair in an SSL decryption certificate to the device memory.
pki import built-in-ca rsa-key-pair key-name { pem | pkcs12 } file-name [ exportable ] password password
Parameter |
Description |
Value |
|---|---|---|
key-name |
Specifies the name of the RSA key pair on the device. |
The value is a string of 1 to 64 characters and case-sensitive without spaces or question marks (?). If the character string is enclosed in double quotation marks (" "), the character string can contain spaces and question marks. |
pem file-name |
Specifies the format of the imported RSA key pair as PEM, and specifies the name of the RSA key pair file. When the file contains a certificate, the device will also import the certificate. |
The value must be an existing certificate file name. |
pkcs12 file-name |
Specifies the format of the imported RSA key pair as PKCS12, and specifies the name of the RSA key pair file. When the file contains a certificate, the device will also import the certificate. |
The value must be an existing certificate file name. |
exportable |
Specifies the imported RSA key pair as exportable. |
- |
password password |
Specifies the decryption password of the RSA key pair. The password is the same as the password configured using the pki export built-in-ca rsa-key-pair command. |
The value must be the name of an existing decryption password of the RSA key pair. |
Usage Scenario
When using the DSA key pair generated by other entities, store the RSA key pair on the CF card or Hda1 of the local device. To make the RSA key pair take effect, run this command to import it to the memory.
Prerequisites
The RSA key pair must already exist on the storage device.
Precautions
<sysname> cd pki <sysname> cd public/
# Import the RSA key pair aaa.pem. In the system, the RSA key pair is named key-1, has the decryption password YsHsjx_202206, and is marked exportable.
<sysname> system-view [sysname] pki import built-in-ca rsa-key-pair key-1 pem aaa.pem exportable password YsHsjx_202206 Info: Succeeded in importing the RSA key pair in PEM format.