Step
1.
Enter system view.
2.
Specify a name for the public
key and enter public key view.
3.
Enter public key code view.
4.
Configure the peer public key.
5.
Return to public key view.
6.
Return to system view.
Displaying and maintaining public keys
Task
Display the local public keys.
Display the specified or all peer
public keys on the local device.
Public key configuration examples
Manually specifying the peer public key on the local device
Network requirements
As shown in
peer device) through a digital signature. Before configuring authentication parameters on Device B,
configure the public key of Device A on Device B.
Configure Device B to use the asymmetric key algorithm of RSA.
•
•
Manually specify the host public key of Device A's public key pair on Device B.
Figure 43 Network diagram
Configuration procedure
Configure Device A;
1.
# Create local RSA key pairs on Device A, setting the modulus length to the default, 1024 bits.
Figure
43, to prevent illegal access, Device B (the local device) authenticates Device A (the
Command
system-view
public-key peer keyname
public-key-code begin
Enter or copy the key
public-key-code end
peer-public-key end
Command
display public-key local { dsa | rsa } public
[ | { begin | exclude | include }
regular-expression ]
display public-key peer [ brief | name
publickey-name ] [ | { begin | exclude |
include } regular-expression ]
151
Remarks
N/A
N/A
N/A
Spaces and carriage returns are
allowed between characters, but
are not saved.
When you exit public key code
view, the system automatically
saves the public key.
N/A
Remarks
Available in any view
Available in any view