The rsa key-pair label command creates a RSA key pair and configures a label name for it.
The undo rsa key-pair label command deletes the RSA key pair with a specified label name.
By default, a device does not have RSA local key pairs or RSA server key pairs.
Parameter | Description | Value |
---|---|---|
label-name |
Specifies the label name of an RSA key pair. |
The value is a string of 1 to 35 case-insensitive characters. The string contains letters, digits, and underscores (_). |
modulus modulus-bits |
Specifies the modulus bit value of an RSA key pair. |
The value is 2048 bits, 3072 bits or 4096 bits. The default value is 3072 bits. |
Usage Scenario
A RSA key is the authentication password of an SSH user, which improves the security of user authentication.
Running the rsa key-pair label label-name command creates a new RSA key pair and stores it using the specified label-name
Configuration Impact
On execution of the dsa key-pair label command, a new RSA key-pair is generated and stored with the given label name. On execution of the undo dsa key-pair label command, the RSA key-pair with the given label name is deleted from the database.
Precautions
The RSA key files stored in a storage medium cannot be manually deleted.
To ensure high security, use the RSA key pair whose length is 3072 bits or higher.