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 is used.

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 character string. The password can be a string of 32 characters in cipher text (for example, %$%$m^NF$L^SO%2@^y$T`^1'|lcZ%$%$) or a string of 1 to 16 characters in plain text (for example, 1234567).

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 6 characters.

Example

# Set the shared key in the Portal server template huawei to hello.

<HUAWEI> system-view
[HUAWEI] web-auth-server huawei
[HUAWEI-web-auth-server-huawei] shared-key cipher hello
Related Topics
display web-auth-server configuration
web-auth-server (system view)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.