17 rsa key export, 18 rsa key import – CANOGA PERKINS CanogaOS Command Reference User Manual
Page 754
CanogaOS Command Line Reference
Revision 1.02
Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches
Page 754 of 855
40.17 rsa key export
To export the key file to a specified destination, use the rsa key export command in global
configuration mode.
Command Syntax
rsa key keyname export url destination-file {public | private} {der | der-hex | pem | ssh1 | ssh2}
keyname
Specify the key name to export.
destination-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 export the key KEY1 to flash as a public key:
Switch(config)# rsa key KEY1 export url flash:/key1.pub public ssh2
The following example shows to export the key KEY2 to flash as a private key:
Switch(config)# rsa key KEY2 export url flash:/key1 private ssh1
Related Commands
rsa key generate
rsa key import
40.18 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.