pki delete-certificate

Function

The pki delete-certificate command deletes the certificate of a specified type from the memory.

Format

pki delete-certificate { ca | crl | local | peer } [ domain domainName ] filename file-name

Parameters

Parameter Description Value
ca

Indicates the CA certificate.

-

crl

Indicates the CRL certificate.

-

local

Indicates the local certificate.

-

peer

Indicates the remote certificate.

-

domain domainName

Specifies the domain name.

The value is a string of 1 to 31 case-insensitive characters.

filename file-name

Indicates the certificate name.

The value is a string of 1 to 63 case-sensitive characters.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
pki debug

Usage Guidelines

Usage Scenario

Before replacing the certificate of a specified type, run the pki delete-certificate command to delete the original certificate from the memory.

After this command is run, the certificate is deleted from the memory, but not the CF card.

Example

# Delete the local certificate test.cer from the memory.
<HUAWEI> system-view
[~HUAWEI] pki delete-certificate local filename test.cer
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >