19 rsa key import, 20 show rsa key – CANOGA PERKINS 9175 Command Reference User Manual
Page 683
CanogaOS Command Reference
40-12
Related Commands
rsa key generate
rsa key import
40.19 rsa key import
To import the key file from a specified source, use the rsa key import command in global configuration
mode.
Command Syntax
rsa key keyname import url source-file {public | private} {der | der-hex | pem | ssh1 | ssh2}
keyname
Specify the key name to import.
source-file
The destination file path and name.
public
Specify the key as a public key.
private
Specify the key as a private key.
{der | der-hex | pem | ssh1 | ssh2} Specify the key format.
Command Mode
Global configuration
Usage
Use the rsa key generate command to generate a key.
Examples
The following example shows to import the key KEY1 to flash as a public key:
Switch(config)# rsa key KEY1 import url flash:/key1.pub public ssh2
The following example shows to import the key KEY2 to flash as a private key:
Switch(config)# rsa key KEY2 import url flash:/key1 private ssh1
Related Commands
rsa key generate
rsa key export
40.20 show rsa key
To display the details of the keys, use the show rsa key command in Privileged EXEC mode.
Command Syntax
show rsa key keyname
keyname
Specify the key name to display.
Command Mode