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).
wapi import private-key

wapi import private-key


The wapi import private-key command imports the AP private key file.

The undo wapi private-key command deletes the imported AP private key file.

By default, no AP private key file is imported.


wapi import private-key format pkcs12 file-name file-name password password

wapi import private-key format pem file-name file-name

undo wapi private-key





format pkcs12

Imports a private key file in P12 format.


format pem

Imports a private key file in PEM format.


file-name file-name

Specifies the name of a private key file.

The value is a string of 1 to 255 characters. It cannot contain question marks (?) and cannot start or end with double quotation marks (" ") or spaces.

password password

Specifies the password in the private key file of the P12 format.

The password can be in plain text or cipher text.
  • A plain text password is a string of 1 to 32 characters.
  • A cipher text password is a string of 48 or 68 characters.


Security profile view

Default Level

3: Management level

Usage Guidelines

  • If WAPI certificate authentication is specified as a security policy in a security profile, run the wapi import private-key command to specify the private key file for the AP certificate.
  • Before using this command, store the AP private key file to the storage of the device, and import the private key file using TFTP.
  • After this command is used, the system obtains the private key file and establishes the mapping between the certificate and private key.

The certificate and private key to be imported must be valid and correct.


# Import the AP private key file ap_key.key.

<Huawei> system-view
[Huawei] wlan
[Huawei-wlan-view] security-profile name p1
[Huawei-wlan-sec-prof-p1] wapi import private-key format pem file-name flash:/ap_key.key
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 207085

Downloads: 122

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