221
aes-cbc-128
: Specifies the
128-bit AES_CBC
encryption algorithm.
aes-cbc-192
: Specifies the
192-bit AES_CBC
encryption algorithm.
aes-cbc-256
: Specifies the
256-bit AES_CBC
encryption algorithm.
password
: Specifies a password used to encrypt the RSA key pair
.
Usage guidelines
You must specify an encryption algorithm and password to encrypt the specified RSA key pair. The
router does not support displaying RSA key pairs in plaintext.
You cannot display the default RSA key pair.
Examples
# Display the RSA key pair named
mykey
in PEM format on the terminal, and set the encryption
algorithm and password to
3des-cbc
and
12345678
, respectively.
<Sysname> system-view
[Sysname] public-key local export rsa name mykey pem 3des-cbc 12345678
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6Ne4EtnoKqBCL28He
sae5FWtyj9D25PEkXagpLqb3i9Gm/Qbb6cqLLPUIgDS8eK7Wt/dXLeFUCDc0lY8V
gujJJn+VuL9znNbboA9IxPH2fMvew8lk52J+rIpE
Kj7FG/3/wzGsXu8WJQIDAQAB
-----END PUBLIC KEY-----
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,7F8FAB15399DF87C
MGaftNqe4esjetm7bRJHSpsbwZ9YUpvA9iWh8R41A/ZiK23+t1XqRwaU
1FXnwbqHgW1pZ7JxQdgBuC9uXc4VQyP/xe6xCyUepdMC71fmeOaiwUFrj6LAzzBg
o3SfhX1NHyHBnr7c6SnIeUTG2g/qRdj40TD4HcRjgPaLaTGguZ553GyS6ODWAwL7
ZBTjv+vow9kfewZ74ocoBje2gLcWlbmiEKCJGV06zW4gv2AH6I8TAhv4GovIN/v1
lCsD2PscXnPOloLTE/8EDLRHNE8RpIYDWqI/YI8Yg6wlcj/9r4gPrDPy
c/TQ0a0yl4eKqn4zdzDTDNq7LRtqr7lGQzVw6srfrr71ib7J
yJFdi2RXETEgOS/jE+xGtNqd38F/YzIRPhAJC2MzdbN/BEoLWOqG7Plm
hvCE3LFx0Xf5LEHBi1UiGLeH08fd1XUQCefARlIxGoRJdtTu
gHP4+NF4PC9B1/171p1QwPk0vyU3TXijueqVUpQBUHSS1iwL
8vsSLHIwK4Uw1QBoqw9jpubG4gUkX8RII8E8b13I6/QTH78E4/FgAmIQ
HTYnE2RDHXkhPGR5FGJsZnd21XLvd2BEkGGmhTk80nDeiI2XH3D48E6UahQwcam/
q/txd/KsLnp0rpJkc/WhOTprioeLQQEBayixKRWzNLsZt3L6lqYbA0EV
0Ng0EZKQyiRV1j7gsBYFRinbSAsIpeYlr7gDAnBCRJdewg==
-----END RSA PRIVATE KEY-----
Related commands
public-key local import
public-key local export public dsa
Use
public-key local export public dsa
without the
filename
argument to display the host public
key of the local DSA key pair in a specific format.
Use
public-key local export public dsa
with the
filename
argument to export the host public key of
the local DSA key pair to the specified file.