Displaying and Maintaining Public Keys
To do...
Display the public keys of the
local key pairs
Display the public keys of the
peers
Public Key Configuration Examples
Configuring the Public Key of a Peer Manually
Network requirements
As shown in
Figure
signature. Before configuring authentication parameters on Device B, configure the public key of Device
A on Device B. More specifically,
Configure Device B to use the asymmetric key algorithm of RSA for identity authentication of
Device A.
Manually configure the host public key of Device A on Device B.
Figure 1-2 Network diagram for manually configuring the public key of a peer
Configuration procedure
1)
Configure Device A
# Create RSA key pairs on Device A.
<DeviceA> system-view
[DeviceA] public-key local create rsa
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 of the modulus[default = 1024]:
Generating Keys...
++++++
++++++
++++++++
++++++++
# Display the public keys of the created RSA key pairs.
[DeviceA] display public-key local rsa public
=====================================================
Use the command...
display public-key local { dsa
| rsa } public
display public-key peer [ brief
| name publickey-name ]
1-2, to prevent illegal access, Device B authenticates Device A through digital
Available in any view
1-5
Remarks