R3303-HP HSR6800 Routers Security Configuration Guide

205
Task
Remar
ks
Exporting an RSA key pair
To copy a local RSA key pair to another device, you must export the RSA key pair
on the local device and then import it to the target router. For information about
importing an RSA key pair, see "Importing an RSA key pair."
To export an RSA key pair:
Ste
p
Command
Remarks
4. Enter system view.
system-view N/A
5. Export an RSA key pair in
PEM format.
public-key local export rsa name
key-name pem { 3des-cbc |
aes-cbc-128 | aes-cbc-192 |
aes-cbc-256 | des-cbc } password
The comma
n
key and pri
v
exported RS
format on th
private key i
encryption
a
password s
p
command.
You cannot
e
RSA key pa
i
Importing an RSA key pair
After you export an RSA key pair on a device, you can import the key pair to
another device.
To import an RSA key pair:
Ste
p
Command
Remarks
6. Enter system view.
system-view N/A
7. Import an RSA key pair.
public-key local import rsa
name key-name pem
A
fter you execute
import command,
of the RSA key p
a
public key is incl
u
key), press Ctrl+
C
password used t
o
pair when the ke
y
You cannot use a
pair as the defaul
The RSA key pair
be in PEM format
Specifying the peer public key on the local device