The display rsa pki local-key-pair public command displays information about the public key in the local PKI key pair.
The display sm2 pki local-key-pair public command displays public key information of PKI SM2 key pairs.
Usage Scenario
The display output of the display rsa pki local-key-pair public command is used to view the information about the public key in the local PKI key pair creating using the rsa pki local-key-pair create command. The public key information includes the time when the key pair is created, key name, key type, and key code.
To query public key information of PKI SM2 key pairs created using the sm2 pki local-key-pair create command, run the display sm2 pki local-key-pair public command.Prerequisites
The rsa pki local-key-pair create command is configured.
A PKI local key pair has been created using the sm2 pki local-key-pair create command.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display rsa pki local-key-pair public
=====================================================
Time of Key pair created: 15:47:34 2011/6/7
Key name:rsa
Key Modules:2048 bit
Key type: RSA signature Key
=====================================================
Key code:
d312e179 1567b81b 132c6317 7db01816 19e589f0
1cdee5a2 578a9555 3be5718a d1f9c8c5 523e5b3d
396e99bf c12116c1 d3c50d72 8ed08db0 0d3fcc2e
289ea9c5 cbac2194 c2f199d5 6ab0eb0a d07c26d9
ef1a7bf3 7c3c4bf8 bf11b621 4ac84e0d f76c9cdc
69ee08ec dea1e7cf d1b5f1c5 97b97869 5cc2be42
179b0a94 3401a9b9 c646615c 3646ee72 cd0142e0
6ce2f957 56eb5d8a f4762962 355309fc c626ffae
a33185cd 616b94b2 ad5c4840 5282d373 a0a35846
9abf2e5a 2eaf5302 5623f923 e30ffa95 8be99d28
65d34921 1341211f baba3695 f11c620f c1a054d0
5606a594 8b8f3c5f d20897c2 aaebe7b6 08d0a485
136f1c7e b4ca8a98 683be4f5 67700a53
<HUAWEI> display sm2 pki local-key-pair public
=====================================================
Time of Key pair created:07:02:51 2016/02/26
Key name:sm2
Key Modules:512 bit
Key type:SM2 signature Key
=====================================================
Key code:
67141f39 a729ba1f 68f5c6bc 3d9024c7 46b24dc1
4d8ecbf1 f152c5c5 828ca3ed 68a9d1e5 9daa3a14
22cf03fa 5da30631 a7b7ee94 03a8d888 9bc15d40
6ac069d5
Item | Description |
---|---|
Time of Key pair created | Indicates the time when a key pair is generated. |
Key name | Indicates the name of the key. |
Key type | Indicates key type. |
Key code | Indicates key code. |
Key Modules | Indicates key modules. |