220
Views
System view
Default command level
2: System level
Parameters
dsa
: Specifies the DSA key pair.
rsa
: Specifies the RSA key pair.
name
key-name
: Specifies a local key pair by its name. The
key-name
argument is a
case-insensitive string of 1 to 64 characters, including letters, digits, and hyphens (-). If no name is
specified, the command destroys default key pair of the specified type.
Examples
# Destroy the local RSA key pair with the default name.
<Sysname> system-view
[Sysname] public-key local destroy rsa
Warning: Confirm to destroy these keys? [Y/N]:y
# Destroy the local DSA key pair with the default name.
<Sysname> system-view
[Sysname] public-key local destroy dsa
Warning: Confirm to destroy these keys? [Y/N] :y
# Destroy the local RSA key pair named
rsa1
.
<Sysname> system-view
[Sysname] public-key local destroy rsa name rsa1
Warning: Destroy the key pair. Continue? [Y/N]:y
Related commands
public-key local create
public-key local export
Use
public-key local export
to display an RSA key pair in PEM format on the terminal.
Syntax
public-key local export rsa name
key-name
pem
{
3des-cbc
|
aes-cbc-128
|
aes-cbc-192
|
aes-cbc-256
|
des-cbc
}
password
Views
System view
Default command level
2: System level
Parameters
rsa
: Specifies an RSA key pair.
name
key-name
: Specifies an RSA key pair by its name. The
key-name
argument is a
case-insensitive string of 1 to 64 characters, including letters, digits, and hyphens (-).
pem
: Specifies the PEM format.
3des-cbc
: Specifies the
3DES_CBC
encryption algorithm.