R2511-HP MSR Router Series Security Command Reference(V5)

340
Default command level
2: System level
Parameters
dsa: DSA key pair.
rsa: RSA key pair.
name key-name: Specifies the name of a local key pair. 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 the specified type of local key pairs that take the default names.
Examples
# Destroy the local RSA key pairs with the default names.
<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.
aes-cbc-128: Specifies the 128-bit AES_CBC encryption algorithm.