Alliedware plus command – Allied Telesis AT-S63 User Manual

Page 849

Advertising
background image

AT-S63 Management Software Command Line User’s Guide

Section IX: Management Security

849

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

AlliedWare Plus

Command

Syntax

crypto key generate hostkey rsa

length

/

key-id

Mode

Configure mode

Description

This command is analogous to syntax 1 of the CREATE ENCO command.
It is used to create encryption key pairs. The AlliedWare Plus management
interface does not have a command for importing or exporting public keys.
Those functions have to be performed from another management
interface.

Example

This example creates an encryption key with a length of 512 bits and the
ID number 4:

awplus> enable
awplus# configure terminal
awplus(config)# crypto key generate hostkey rsa 512/4

Advertising