Generate an RSA, DSA, or ECDSA key

The switch supports the following keys that are used for SSH access:

  • RSA: Rivest-Shamir-Adleman (RSA), which is an algorithm that is widely supported.

  • DSA: Digital Signature Algorithm (DSA), which is a secure algorithm for authentication but not for encryption.

  • ECDSA: Elliptic Curve Digital Signature Algorithm (ECDSA), which is a newer and very secure algorithm that is not yet widely supported.

Note: To generate an SSH key file, SSH must be disabled (see Configure the global SSH access settings).

To generate an RSA, DSA, or ECDSA key:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Security > Access > SSH > Host Keys Management.

    The Host Keys Management page displays.

    The Keys Present field displays whether a certificate is present on the switch.

  3. Do one or more of the following:
    • RSA key: In the RSA Keys Management section, in the Key Length field, specify a key length, and select the Generate RSA Keys radio button.

      The supported key lengths for RSA are 1024, 2048 and 3072. The default is 1024.

    • DSA key: In the DSA Keys Management section, select the Generate DSA Keys radio button.

    • ECDSA key: In the ECDSA Keys Management section, in the Key Length field, specify a key length, and select the Generate ECDSA Keys radio button.

      The supported key lengths for ECDSA are 256, 384 and 521. The default is 256.

  4. Click the Apply button.

    The switch generates a key. The Key Generation In Progress field shows progress information.

  5. To save the settings to the running configuration, click the Save icon.

The following table describes the view-only fields on the page.

Table 1. Host Key Status information

Field

Description

Keys Present

Displays which keys are present on the switch (if any): RSA, DSA, ECDSA, or None.

Key Generation In Progress

Displays which key is being generated (if any): RSA, DSA, ECDSA, or None.