The rsa local-key-pair create command generates a local RSA host key pair and a server key pair.
When the rsa local-key-pair create command is used, if an RSA key already exists, the system will prompt the user to confirm whether they wish to change the original key. The generated key pair is named FW name_server and FW name_host, such as FW_host and FW_server. This command is not saved in the configuration file.
After inputting this command, you are prompted to enter the bits of the host key. The bit length range of the server key pair and the host key pair is 2048 bits. If there is an existing key pair, you should confirm whether you still want to run the command and change it.
This command is not saved in the configuration file. After you run the rsa local-key-pair create command, the command still takes effect after the FW is restarted.
# Configure to generate the local host key pair and the server key pair.
<sysname> system-view
[sysname] rsa local-key-pair create
Info: The key name will be: FW_Host
the range of public key size is (2048 ~ 2048).
NOTES: If the key modulus is greater than 512,
it will take a few minutes.
Input the bits in the modulus[default = 2048]:2048
Generating keys...
.+++++
........................++
....++++
...........++