< Home

display pki

Function

display pki command displays the key pair and public key on LPUs.

Format

display pki rsa local-key-pair [ name keyname ] logic-spu public

display pki rsa built-in-ca [ name keyname ] logic-spu public

display pki sm2 local-key-pair [ name keyname ] logic-spu public

display pki dsa local-key-pair [ name keyname ] logic-spu public

display pki rsa local-key-pair [ name keyname ] slot slot-id cpu cpu-id public

display pki rsa built-in-ca [ name keyname ] slot slot slot-id cpu cpu-id public

display pki sm2 local-key-pair [ name keyname ] slot slot-id cpu cpu-id public

display pki dsa local-key-pair [ name keyname ] slot slot-id cpu cpu-id public

Parameters

Parameter Description Value

rsa local-key-pair

Displays the RSA key pair and public key on LPUs.

-

rsa built-in-ca

Displays the RSA key pair and public key used by the SSL decryption certificate on LPUs.

-

sm2 local-key-pair

Displays the SM2 key pair and public key on LPUs.

-

dsa local-key-pair

Displays the DSA key pair and public key on LPUs.

-

name keyname

Specifies the name of the key pair on the device.

NOTE:

If keyname is not specified, all key pairs and public keys are displayed. If keyname is specified, the specified key pair and public key are displayed.

The value is a string of 1 to 64 characters.

logic-spu

Specifies the logic SPU.

-

slot slot-id

Specify the slot ID. Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter.

-

cpu cpu-id

Specify the CPU ID. Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter.

The value is an integer that ranges from 0 to 3.

Views

User view

Default Level

The default level of the display pki rsa local-key-pair [ name keyname ] logic-spu public command and the display pki rsa local-key-pair [ name keyname ] slot slot-id cpu cpu-id public command is 2: Configuration level, and the default level of other commands is 3: Management level.

Usage Guidelines

This command shows information about the key pair and public key, including key pair creation time, key pair name, whether the key can be exported, and public key information.

Example

# Display information about all RSA key pairs.

USG6000E:

<sysname> display pki rsa local-key-pair logic-spu public

=====================================================                           
Time of Key pair created: 19:20:32  2016/12/27                                  
Key Name: ddd                                                                   
Key Index: 0                                                                    
Key Modules: 2048 bit                                                           
Key Exportable: No                                                              
Key Type: RSA signature key                                                     
=====================================================                           
Key code:                                                                       
30820109                                                                        
  02820100                                                                      
    A8ED0647 A526F3DF 373A8FC5 9CC3D660 B57E09DA                                
    57E0A370 9EFFA40A 1AB600FC 7E5FF136 4B8B8946                                
    9727A362 A5733315 7194BADD 2E18ABB1 97792834                                
    499BF128 A0A16293 04504C65 062749A7 35EEC2B2                                
    2CA97882 CFE664B3 CE9F5263 8524EA6D 524E7831                                
    8488A396 460D8CC6 6B49D302 4BEE54E6 B0224978                                
    1ABEDF81 1AFA317D 8724EEE0 A513EAF1 71082DBE                                
    5F2C955D F756E265 71441E38 8F6B32C0 0063A056                                
    4E6DBF14 4DCA7A56 B5C3E7D0 2638EB1B 0F55E7B1                                
    ED49F21F DB2F620D 710DD754 78D27600 728C2629                                
    CC6808F7 B8C7DF0B CFE17FFF B58371B7 B338867E                                
    3A6C3829 2BE60C74 934AF7EF DAEFD004 AAEB5D8E                                
    22AEFC6E 66A9E5B4 7DF9D3F3 981AAD1B                                         
  0203                                                                          
    010001                                                                      

<sysname> display pki rsa local-key-pair slot 2 cpu 3 public

=====================================================                           
Time of Key pair created: 19:20:32  2016/12/27                                  
Key Name: ddd                                                                   
Key Index: 0                                                                    
Key Modules: 2048 bit                                                           
Key Exportable: No                                                              
Key Type: RSA signature key                                                     
=====================================================                           
Key code:                                                                       
30820109                                                                        
  02820100                                                                      
    A8ED0647 A526F3DF 373A8FC5 9CC3D660 B57E09DA                                
    57E0A370 9EFFA40A 1AB600FC 7E5FF136 4B8B8946                                
    9727A362 A5733315 7194BADD 2E18ABB1 97792834                                
    499BF128 A0A16293 04504C65 062749A7 35EEC2B2                                
    2CA97882 CFE664B3 CE9F5263 8524EA6D 524E7831                                
    8488A396 460D8CC6 6B49D302 4BEE54E6 B0224978                                
    1ABEDF81 1AFA317D 8724EEE0 A513EAF1 71082DBE                                
    5F2C955D F756E265 71441E38 8F6B32C0 0063A056                                
    4E6DBF14 4DCA7A56 B5C3E7D0 2638EB1B 0F55E7B1                                
    ED49F21F DB2F620D 710DD754 78D27600 728C2629                                
    CC6808F7 B8C7DF0B CFE17FFF B58371B7 B338867E                                
    3A6C3829 2BE60C74 934AF7EF DAEFD004 AAEB5D8E                                
    22AEFC6E 66A9E5B4 7DF9D3F3 981AAD1B                                         
  0203                                                                          
    010001                                                                      

Table 1 Description of the display pki rsa local-key-pair logic-spu public command output

Item

Description

Time of Key pair created

Time when the key pair is created.

Key Name

Name of a key pair.

Key Index

Index of the key.

Key Modules

Number of bits of the key.

Key Exportable

Whether the key can be exported.

Key Type

Type of the key.

Key code

Public key in the key pair.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >