< Home

public-key-code end

Function

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

Format

public-key-code end

Parameters

None

Views

Public key editing view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After this command is run, editing the public key ends. Before saving the public key, the system will check the validity of the key.
  • If there are illegal characters in the public key configured by the user, the system displays an error prompt. The public key is then discarded, and the configuration fails.
  • If the public key configured is valid, it is saved in the public key chain table of the host.

Prerequisites

Before you run this command, the public-key-code begin command has been run to enter the public key edit view.

Precautions

  • Generally, in the public key view, only the public-key-code end command can be used to exit. The quit command cannot be used.
  • If no valid key coding is input, the key cannot be generated after the public-key-code end command is used. The system prompts that key generation fails.
  • If the key has been deleted in another window, when you run the public-key-code end command, the system prompts that the key does not exist and returns to the system view.

Example

# Exit the DSA public key editing view and saves the DSA key configuration.

<HUAWEI> system-view
[HUAWEI] dsa peer-public-key dsakey001 encoding-type der
[HUAWEI-dsa-public-key] public-key-code begin
[HUAWEI-dsa-key-code] 308188
[HUAWEI-dsa-key-code] 028180
[HUAWEI-dsa-key-code] B21315DD 859AD7E4 A6D0D9B8 121F23F0 006BB1BB
[HUAWEI-dsa-key-code] A443130F 7CDB95D8 4A4AE2F3 D94A73D7 36FDFD5F
[HUAWEI-dsa-key-code] 411B8B73 3CDD494A 236F35AB 9BBFE19A 7336150B
[HUAWEI-dsa-key-code] 40A35DE6 2C6A82D7 5C5F2C36 67FBC275 2DF7E4C5
[HUAWEI-dsa-key-code] 1987178B 8C364D57 DD0AA24A A0C2F87F 474C7931
[HUAWEI-dsa-key-code] A9F7E8FE E0D5A1B5 092F7112 660BD153 7FB7D5B2
[HUAWEI-dsa-key-code] 171896FB 1FFC38CD
[HUAWEI-dsa-key-code] 0203
[HUAWEI-dsa-key-code] 010001
[HUAWEI-dsa-key-code] public-key-code end
[HUAWEI-dsa-public-key] peer-public-key end
[HUAWEI]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >