The rsa peer-public-key command accesses the public key view.
The undo rsa peer-public-key command deletes the public key.
rsa peer-public-key key-name [ encoding-type { der | pem | openssh } ]
undo rsa peer-public-key key-name
| Parameter | Description | Value |
|---|---|---|
| key-name | Specifies the public key name. | The value is a string of 1 to 30 characters. |
| encoding-type | Indicates the encoding format of the public key. | - |
| der | Sets the encoding format of the public key to DER. | - |
| pem | Sets the encoding format of the public key to PEM. | - |
| openssh | Sets the encoding format of the public key to OPENSSH. | - |
This command can be used with the public-key-code begin command to save the public key of the client.
The public key of the client is randomly generated by the client software. The default encoding format of the public key is DER.
If the undo rsa peer-public-key key-name command is used to delete a public key that has been assigned to an SSH user, you need to run the undo ssh user assign rsa-key command to delete the mapping between the SSH user and public key first. Otherwise, the public key cannot be deleted.
The peer public key supports only PKCS#1. Other PKCS versions are not supported.