Replacing or clearing the public-key file

The client public-key file remains in the switch flash memory even if you erase the startup-config file, reset the switch, or reboot the switch.

Remove the existing client public-key file or specific keys by executing the clear crypto public-key command. This clears the public keys from both management modules. The module that is not active must be in standby mode.


clear crypto public-key

Deletes the client public-key file from the switch.


clear crypto public-key 3

Deletes the entry with an index of 3 from the client public-key file on the switch.