< Home

pki sm2 local-key-pair destroy

Function

The pki sm2 local-key-pair destroy command destroys an SM2 key pair.

Format

pki sm2 local-key-pair destroy key-name

Parameters

Parameter Description Value
key-name Specifies the name of an SM2 key pair that you want to destroy. The value must be an existing SM2 key pair name.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

It is recommended that you run this command to destroy the specified SM2 key pair if it is leaked, damaged, unused or lost.

Prerequisites

The SM2 key pair has been created using the pki sm2 local-key-pair create command or the SM2 key pair has been imported to the memory using the pki import sm2-key-pair command.

Example

# Destroy the SM2 key pair named abc.

<sysname> system-view
[sysname] pki sm2 local-key-pair create abc
 Info: The name of the new key-pair will be: abc
 Generating key-pairs...  
[sysname] pki sm2 local-key-pair destroy abc
 Warning: The name of the key pair to be deleted is abc.                       
 Are you sure you want to delete the key pair? [y/n]:y                          
 Info: Succeeded in destroying SM2 key pair.  
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >