DETAILED STEPS
Step 1
openssl genrsa -out private-key-file bit-length
This command generates a private key that is
bit-length
bits long and writes the key to the
private-key-file
file.
Host%
openssl genrsa -out privkey.pem 2048
Example:
Generating RSA private key, 2048 bit long modulus
.........+++
...............................................................................+++
e is 65537 (0x10001)
Step 2
ls -l
This command displays detailed information about each file in the current directory, including the permissions, owners,
size, and when last modified.
Example:
Host%
ls -l
total 8
-rw-r--r--
1 janedoe eng12
1679 Jun 12 14:55 privkey.pem
The privkey.pem file contains the private key generated using the
openssl genrsa
command.
Step 3
openssl rsa -in private-key-file
-pubout -out public-key-file
This command generates a public key based on the specified private key in the
private-key-file
file and writes the public
key to the
public-key-file
file.
Example:
Host%
openssl rsa -in privkey.pem -pubout -out pubkey.pem
writing RSA key
Step 4
ls -l
This command displays detailed information about each file in the current directory, including the permissions, owners,
size, and when last modified.
Example:
Host%
ls -l
total 16
-rw-r--r--
1 janedoe eng12
1679 Jun 12 14:55 privkey.pem
-rw-r--r--
1 janedoe eng12
451 Jun 12 14:57 pubkey.pem
The pubkey.pem file contains the public key generated from the private key using the
openssl rsa
command.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1828
How to Configure Signed Tcl Scripts
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......