Allied Telesis AT-S63 User Manual

Page 381

Advertising
background image

AT-S63 Management Software Command Line Interface User’s Guide

381

If you are exporting a public key from the key database to the file system,
the KEY parameter should specify the ID of the key that you want to
export. Only the public key of a key pair is exported to the file system.
You cannot export a private key.

The TYPE parameter specifies the type of key to be imported or
exported. The only option is RSA.

The FILE parameter specifies the filename of the encryption key. The
filename must include the “.key” extension. If you are exporting a key
from the key database to the file system, the filename must be unique
from all other files in the file system. If you are importing a key, the
filename should specify the name of the file in the file system that
contains the key you want to import into the key database.

The DESCRIPTION parameter specifies a user-defined description for the
key. This parameter should be used only when importing a key and not
when exporting a key. The description will appear next to the key when
you view the key database. Descriptions can help you identify the
different keys stored in the switch.

The FORMAT parameter specifies the format of the key, which can be
either Secure Shell format (SSH version 1 or 2) or hexadecimal format
(HEX). The FORMAT parameter must be specified when importing or
exporting keys. The default is HEX.

Syntax 2 Examples

This is an example of exporting a public key from the key database to the
file system. The example assumes that the ID of the key pair with the
public key to be exported is 12 and that you want to store the key as a
file called “public12.key” in the file system. It specifies the format as SSH
version 1 and the type as RSA:

create enco key=12 type=rsa file=public12.key format=ssh

This is an example of importing a public key from the file system to the
key database. It assumes that the name of the file containing the public
key is swpub24.key and that the key is to be given the ID number 6 in the
key database. It gives the key the description “Switch 24 public key.” The
format is SSH version 2 and the type is RSA:

create enco key=6 type=rsa description="Switch 24 public key"
file=swpub24.key format=ssh2

Advertising