An attempt to copy a client public-key file into the switch has failed and the switch lists one of the following messages

Download failed: overlength key in key file.
Download failed: too many keys in key file.
Download failed: one or more keys is not a valid RSA public key.

The public key file you are trying to download has one of the following problems:

  • A key in the file is too long. The maximum key length is 1024 characters, including spaces. This could also mean that two or more keys are merged together instead of being separated by a <CR> <LF>.

  • There are more than ten public keys in the key file.

  • One or more keys in the file is corrupted or is not a valid rsa public key.