< Home

shared-key (Portal server template view)

Function

The shared-key command configures the shared key that the device uses to exchange information with a Portal server.

The undo shared-key command restores the default setting.

By default, no shared key that the device uses to exchange information with a Portal server is configured.

Format

shared-key cipher key-string

undo shared-key

Parameters

Parameter Description Value

cipher

Displays a shared key in cipher text.

-

key-string

Specifies the shared key.

The value is a string of case-sensitive characters without spaces. It can be a string of 20 to 392 characters in cipher text, or a string of 1 to 255 characters in plain text.

Views

Portal server template view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After a shared key is configured using the shared-key command, the Portal packet exchanged between the device and Portal server carries an authenticator generated according to the shared key, and the authenticator is used to check whether the Portal packet at the receiver is correct. This effectively improves the information exchange security.

Precautions

To improve security, it is recommended that the password contains at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contains at least 16 characters.

Example

# Configure the shared key in the Portal server template huawei to huawei@123.

<HUAWEI> system-view
[HUAWEI] web-auth-server huawei
[HUAWEI-web-auth-server-huawei] shared-key cipher huawei@123
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >