No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
wechat-server-ip (Central AP)

wechat-server-ip (Central AP)


The wechat-server-ip command configures the domain name, Secure Sockets Layer (SSL) policy, and port number of the WeChat server.

The undo wechat-server-ip command restores the default settings of the WeChat server.

By default:
  • The domain name of the WeChat server is
  • No SSL policy is configured in the system.
  • The port number of the WeChat server is 443.


wechat-server-ip [ url url-string ] ssl-policy policy-name [ port port-number ]

undo wechat-server-ip





url url-string

Specifies the domain name of the WeChat server.

The value is a string of 1 to 256 characters.

ssl-policy policy-name

Specifies the name of an SSL policy.

The value must be the name of an existing SSL policy.

port port-number

Specifies the TCP port number used by the WeChat server.

The value is an integer that ranges from 1 to 65535.


Built-in Portal server WeChat authentication profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a WeChat authentication scenario, the device sends shop information to clients, and the clients then send shop information to the WeChat server for verification. After the verification succeeds, the clients visit the authentication URL to initiate authentication on the device. The device obtains shop information in either of the following ways:

  • Automatic mode: Run the wechat-server-ip command to specify the domain name, SSL policy, and port number of the WeChat server. After you configure the WeChat server information, the device will automatically obtain shop information from the WeChat server.

    When WeChat authentication is required in a large number of shops, the automatic mode is recommended for convenient management and maintenance.

  • Manual mode: Run the shop-id (Central AP) command to configure shop information.

If both two commands are configured, the configuration of the shop-id (Central AP) command does not take effect.


  • An SSL policy has been created using the ssl policy policy-name type client command in the system view.

  • You have obtained a digital certificate for the SSL policy from an authorized certificate authority.

Follow-up Procedure

Run the polling-time (Central AP) command to set the interval for obtaining shop information from the WeChat server.


# Set the WeChat server domain name to, SSL policy name to weixin, and TCP port number to 8080.

<Huawei> system-view
[Huawei] pki realm weixin
[Huawei-pki-realm-weixin] quit
[Huawei] ssl policy weixin type client
[Huawei-ssl-policy-weixin] server-verify enable
[Huawei-ssl-policy-weixin] pki-realm weixin
[Huawei-ssl-policy-weixin] quit
[Huawei] portal local-server wechat-authen
[Huawei-wechat-authen] wechat-server-ip url ssl-policy weixin port 8080
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 203108

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next