365
Public key management commands
The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for
features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more
information about FIPS mode, see
Security Configuration Guide
.
display public-key local public
Use
display public-key local public
to display local public keys.
Syntax
display public-key local
{
dsa
|
ecdsa
|
rsa
}
public
[
name
key-name
]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
dsa
: Specifies the DSA key pair type.
ecdsa
: Specifies the ECDSA key pair type.
rsa
: Specifies the RSA key pair type.
name key-name
: Specifies a local key pair by its name, a case-insensitive string of 1 to 64
characters. Valid characters are letters, digits, and hyphens (-). If you do not specify a key pair, this
command displays the public keys of all local key pairs of the specified type.
Usage guidelines
You can copy and distribute the public key of a local key pair to peer devices.
You cannot display a host public key that has the default key pair name by specifying the
name
key-name
option. To view a host public key that has the default key pair name, display all local public
keys by using this command without specifying a key pair name.
Examples
# Display all local RSA public keys.
<Sysname> display public-key local rsa public
=============================================
Key name: hostkey (default)
Key type: RSA
Time when key pair created: 15:40:48 2011/05/12
Key code:
30819F300D06092A864886F70D010101050003818D0030818902818100DAA4AAFEFE04C2C9
667269BB8226E26331E30F41A8FF922C7338208097E84332610632B49F75DABF6D871B80CE
C1BA2B75020077C74745C933E2F390DC0B39D35B88283D700A163BB309B19F8F87216A44AB
FBF6A3D64DEB33E5CEBF2BCF26296778A26A84F4F4C5DBF8B656ACFA62CD96863474899BC1