pki import whitelist

Function

The pki import whitelist command imports the PKI whitelist in a specified XML file to a device.

The undo pki import whitelist command deletes the PKI whitelist in a specified XML file from a device.

The undo pki import whitelist all command deletes all PKI whitelists.

By default, the PKI whitelist in an XML file is not imported to a device.

Format

pki import whitelist file-name filename

undo pki import whitelist file-name filename

undo pki import whitelist all

Parameters

Parameter Description Value
file-name filename

Specifies the name of an XML file.

You can import a whitelist to the root directory or level-1 directory. For example:

pki import whitelist filename aaa.xml.

pki import whitelist filename bbb/aaa.xml.

The value is a string of 1 to 127 characters.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
pki debug

Usage Guidelines

Usage Scenario

In LTE scenarios, a security gateway and base stations use certificates to negotiate IPsec tunnels. The PKI whitelist on the security gateway can be used to uniformly manage certificates of base stations. If PKI whitelist check is enabled on the security gateway, the common names in the certificate subjects of base stations must be imported to the security gateway's PKI whitelist for certificate verification of the base stations. To import the PKI whitelist in a specified XML file to a device, run the pki import whitelist command.

Precautions

Before importing the PKI whitelist in a specified XML file to a device, ensure that the XML file has been saved on the main control board's CF card.

The XML file is 7-bit ASCII-encoded in the following format:

CN-on-Certificate_of-RBS-1

CN-on-Certificate_of-RBS-2

Deleting XML files that have been imported to a device is not allowed. If you forcibly delete such an XML file, the PKI whitelists imported through this XML file cannot be deleted.

Different XML files can contain the same PKI whitelists. A PKI whitelist is deleted only after all XML files containing this PKI whitelist are deleted.

Example

# Delete all PKI whitelists on a device.
<HUAWEI> system-view
[~HUAWEI] undo pki import whitelist all
# Import the PKI whitelist saved in the file named test.xml to a device.
<HUAWEI> system-view
[~HUAWEI] pki import whitelist file-name test.xml
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >