< Home

public-key-code end

Function

The public-key-code end command returns to the public key view from the public key edit view and saves the public key configured by the user.

Format

public-key-code end

Parameters

None

Views

Public key edit view

Default Level

3: Management level

Usage Guidelines

The public-key-code end command ends the process of editing the public key. Before saving the public key, the system checks the validity of the key. If the public key character string contains invalid characters, the system displays a message, the configured key is discarded, and the configuration fails. If the public key is valid, it is saved in public key chain table on the client.

Example

# Quit the public key editing view and save the configuration.

<sysname> system-view
[sysname] rsa peer-public-key testing
Enter "RSA public key" view, return system view with "peer-public-key end".
[sysname-rsa-public-key] public-key-code begin
Enter "RSA key code" view, return last view with "public-key-code end".
[sysname-rsa-key-code] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[sysname-rsa-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[sysname-rsa-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[sysname-rsa-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[sysname-rsa-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[sysname-rsa-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[sysname-rsa-key-code] public-key-code end
[sysname-rsa-public-key]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >