Public-Key Local Import - HPE FlexNetwork HSR6800 Security Command Reference

Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

public-key local import

Use public-key local import to import an RSA key pair in PEM format.
Syntax
public-key local import rsa name key-name pem
Views
System view
Default command level
2: System level
Parameters
rsa: Specifies an RSA key pair.
name key-name: Specifies a name for the imported RSA key pair. The key-name argument is a
case-insensitive string of 1 to 64 characters, including letters, digits, and hyphens (-).
pem: Specifies the PEM format.
Usage guidelines
The system saves the imported RSA key pair at a different location from the default RSA key pair to
avoid overwriting the default RSA key pair.
The RSA key pair to be imported must be in PEM format so that it can be copied and pasted onto the
terminal.
After you execute the public-key local import command, copy the private key of the RSA key pair
onto the terminal when prompted. The public key is included in the private key.
The imported RSA key pair must have been encrypted with a password. You are asked to provide the
password when importing the key pair.
Examples
# Import an RSA key pair in PEM format, name the key pair as mykey, and enter 12345678 as the
password.
<Sysname> system-view
[Sysname] public-key local import rsa name mykey pem
Enter PEM-formatted certificate.
End with a Ctrl+C on a line by itself.
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,7F8FAB15399DF87C
MGaftNqe4esjetm7bRJHSpsbwZ9YUpvA9iWh8R406NGq8e+1A/ZiK23+t1XqRwaU
1FXnwbqHgW1pZ7JxQdgBuC9uXc4VQyP/xe6xCyUepdMC71fmeOaiwUFrj6LAzzBg
o3SfhX1NHyHBnr7c6SnIeUTG2g/qRdj40TD4HcRjgPaLaTGguZ553GyS6ODWAwL7
ZBTjv+vow9kfewZ74ocoBje2gLcWlbmiEKCJGV06zW4gv2AH6I8TAhv4GovIN/v1
lCsD2PscXnPOloLTE/8EDLRHNE8RpIYDWqI/YI8Yg6wlx29mf29+cj/9r4gPrDPy
c/TQ0a0g95Khdy+yl4eDKaFiQQ+Kqn4zdzDTDNq7LRtqr7lGQzVw6srfrr71ib7J
yJFdi2RXETEgOS/jE+xGtNqd38F/YzIRPax7NNMK+hAJC2MzdbN/BEoLWOqG7Plm
hvCE3LFxelExLJU+0XfAX77TI2+5LEHBi1UiGLeH08fd1XUQCefARlIxGoRJdtTu
gHP4+NF4PC9B1/GZoAYUp+171p1QwPk0vyU3TXijueqVUpQBUHGxSE0UW+SS1iwL
8vsSLHIwK4aZ77Z1o+Uw1QBoqw9jpubG4gUkX8RII8E8b13I6/QTH78E4/FgAmIQ
HTYnE2RDHXkhPGR5FGJsZnd21XLvd2BEkGGmhTk80nDeiI2XH3D48E6UahQwcam/
224

Advertisement

Table of Contents
loading

Table of Contents