< Home

share-key

Function

The share-key command configures a shared key.

The undo share-key command deletes a shared key.

By default, no shared key is configured.

Format

share-key key-value

undo share-key

Parameters

Parameter

Description

Value

key-value

Specifies a shared key.

The value is a string of characters.
  • The key in plaintext contains 6 to 32 characters.
  • The key in ciphertext contains 48 or 68 characters.
NOTE:
To ensure security, a shared key must be a combination of at least two of the following: digits, lowercase letters, uppercase letters, and special characters.

Views

IoT profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can configure a shared key to improve data communication security and ensure completeness of packets exchanged between an AP and host computers. The shared key must be the same on the AP and host computers.

Precautions

After the type cas-edu command is executed to set the card type to cas-edu, the share-key command cannot be executed.

Example

# Set the shared key to aabb0011@11.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] iot-profile name profile1
[HUAWEI-wlan-iot-prof-profile1] share-key aabb0011@11
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >