The display rsa peer-public-key command displays the peer public key saved on the local host. If no parameter is specified, the command displays detailed information about all peer public keys.
Parameter | Description | Value |
---|---|---|
brief | Displays the brief information about all peer public keys. | - |
name key-name | Specifies the key name. | The value is a string of 1 to 30 case-insensitive characters without spaces. NOTE:
The string can contain spaces if it is enclosed with double quotation marks ("). |
Usage Scenario
You can run this command to check detailed information about the RSA public key and whether the local and peer public keys are the same.
Precautions
You must complete the RSA public key configuration before running this command.
# Display the brief information about all RSA public keys.
<HUAWEI> display rsa peer-public-key brief
Address Bits Name --------------------------- 768 rsakey001
Item |
Description |
---|---|
Address |
Brief information about the public key. |
Bits |
Bits in the public key. |
Name |
Name of the public key. |
# Display the detailed information about the RSA public key named rsakey001.
<HUAWEI> display rsa peer-public-key name rsakey001
===================================== Key name: rsakey001 Key address: ===================================== Key Code: 3067 0260 A3158E6C F252C039 135FFC45 F1E4BA9B 4AED2D88 D99B2463 3E42E13A 92A95A37 45CDF037 1AF1A910 AAE3601C 2EB70589 91AF1BB5 BD66E31A A9150911 859CAB0E 1E10548C D70D000C 55A1A217 F4EA2F06 E44BD438 DA472F14 3FB7087B 45E77C05 0203 010001
Item |
Description |
---|---|
Key name |
Name of the public key. |
Key address |
Brief information about the public key. |
Key Code |
Code of the public key. |