R3303-HP HSR6800 Routers Security Command Reference

229
Usage guidelines
The system verifies the key before saving it. If the key is not in the correct format, the system discards the
key and displays an error message. If the key is valid, the system saves the key.
Examples
# Exit public key code view and save the configured public key.
<Sysname> system-view
[Sysname] public-key peer key1
[Sysname-pkey-public-key] public-key-code begin
[Sysname-pkey-key-code]30819F300D06092A864886F70D010101050003818D0030818902818100C0EC
8014F82515F6335A0A
[Sysname-pkey-key-code]EF8F999C01EC94E5760A079BD73E4F4D97F3500EDB308C29481B77E719D164
3135877E13B1C531B4
[Sysname-pkey-key-code]FF1877A5E2E7B1FA4710DB0744F66F6600EEFE166F1B854E2371D5B952ADF6
B80EB5F52698FCF3D6
[Sysname-pkey-key-code]1F0C2EAAD9813ECB16C5C7DC09812D4EE3E9A0B074276FFD4AF2050BD4A9B1
DDE675AC30CB020301
[Sysname-pkey-key-code]0001
[Sysname-pkey-key-code] public-key-code end
[Sysname-pkey-public-key]
Related commands
public-key peer
public-key-code begin
public-key local create
Use public-key local create to create local asymmetric key pairs. The created local key pairs are
automatically saved, and can survive a reboot.
Syntax
public-key local create { dsa | rsa } [ name key-name ]
Default
No asymmetric key pair is created.
Views
System view
Default command level
2: System level
Parameters
dsa: Creates a DSA key pair.
rsa: Creates an RSA key pair.
name key-name: Specifies a name for the 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 key pair uses the
default name.