beautypg.com

18 rsa key export – CANOGA PERKINS 9175 Command Reference User Manual

Page 682

background image

CanogaOS Command Reference

40-11


Command Syntax

KEYLINE


Command Mode

Rsa key configuration


Usage

Type any key string.


Examples

The following example shows to type a key string of the key KEY1:

Switch(config)# rsa key KEY1

Switch(config-rsa-key)# 00302017 4A7D385B 1234EF29 335FC973

Switch(config-rsa-key)# 2DD50A37 C4F4B0FD 9DADE748 429618D5


Related Commands

validate

40.18 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