< Home

rsa peer-public-key

Function

The rsa peer-public-key command accesses the public key view.

The undo rsa peer-public-key command deletes the public key.

Format

rsa peer-public-key key-name [ encoding-type { der | pem | openssh } ]

undo rsa peer-public-key key-name

Parameters

Parameter Description Value
key-name Specifies the public key name. The value is a string of 1 to 30 characters.
encoding-type Indicates the encoding format of the public key. -
der Sets the encoding format of the public key to DER. -
pem Sets the encoding format of the public key to PEM. -
openssh Sets the encoding format of the public key to OPENSSH. -

Views

System view

Default Level

3: Management level

Usage Guidelines

This command can be used with the public-key-code begin command to save the public key of the client.

The public key of the client is randomly generated by the client software. The default encoding format of the public key is DER.

If the undo rsa peer-public-key key-name command is used to delete a public key that has been assigned to an SSH user, you need to run the undo ssh user assign rsa-key command to delete the mapping between the SSH user and public key first. Otherwise, the public key cannot be deleted.

The peer public key supports only PKCS#1. Other PKCS versions are not supported.

Example

# Access the public key view.

<sysname> system-view
[sysname] rsa peer-public-key abc
Enter "RSA public key" view, return system view with "peer-public-key end".
[sysname-rsa-public-key]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >