< Home

wapi import private-key

Function

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

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

By default, no AC private key file is imported.

Format

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

Parameters

Parameter

Description

Value

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.

Views

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 AC certificate.
  • Before using this command, store the AC private key file to the storage medium 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.

Example

# Import the AC private key file ac_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:/ac_key.key
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >