Related command:
Example
public-key local destroy
Syntax
View
bits and defaults to 1024. If the key pair already exists, the system will ask you
whether you want to overwrite it.
The configuration of this command can survive a reboot. You only need to
■
configure it once.
public-key local destroy, display public-key local.
# Create local RSA key pair.
<Sysname> system-view
[Sysname] public-key local create rsa
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It may take a few minutes.
Press CTRL+C to abort.
Input the bits in the modulus [default = 1024]:
Generating keys...
........++++++
....................................++++++
.......++++++++
......................++++++++
.
# Create local DSA key pair.
<Sysname> system-view
[Sysname] public-key local create dsa
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits in the modulus[default = 1024]:
Generating keys...
.++++++++++++++++++++++++++++++++++++++++++++++++++*
........+......+.....+......................................+..+....
...................+..........+..............+.............+...+....
.+...............+..+......+.................+..........+...+....+..
.....+.....+............+.........+.........................+.......
.+..........+..............+.....+...+........................+.....
....+..........+...........+........+....+.......................+++
++++++++++++++++++++++++++++++++++++++++++++++++*
.
n
Pressing CTRL+C quits the session of generating the local RSA key pair rather
■
than aborting the generation of the local RSA key pair.
Be sure to press CTRL+C before inputting the bits in the modulus.
■
public-key local destroy { dsa | rsa }
System view
2181