User`s manual
260
DWS-1008 User’s Manual
D-Link Systems, Inc.
Managing Keys and Certicates
• PKCS #12 object le certicate - More secure than using self-signed certicates,
but slightly less secure than using a Certicate Signing Request (CSR), because
the private key is distributed in a le from the CA instead of generated by the switch
itself. The PKCS #12 object le is more complex to deal with than self-signed
certicates.
• Certicate Signing Request (CSR) - The most secure method, because the switch’s
public and private keys are created on the switch itself, while the certicate comes
from a trusted source (CA). This method requires generating the key pair, creating
a CSR and sending it to the CA, cutting and pasting the certicate signed by the CA
into the CLI, and then cutting and pasting the CA’s own certicate into the CLI.
Creating Public-Private Key Pairs
To use a self-signed certicate or Certicate Signing Request (CSR) certicate for switch
authentication, you must generate a public-private key pair.
To create a public-private key pair, use the following command:
crypto generate key {eap | ssh} {512 | 1024 | 2048}
Choose the key length based on your need for security or to conform with your organization’s
practices. For example, the following command generates an EAP key pair of 1024 bits:
DWS-1008# crypto generate key eap 1024
admin key pair generated
Note: After you generate or install a certicate (described in the following sections), do not
create the key pair again. If you do, the certicate might not work with the new key, in which
case you will need to regenerate or reinstall the certicate.
Generating Self-Signed Certicates
After creating a public-private key pair, you can generate a self-signed certicate. To generate
a self-signed certicate, use the following command:
crypto generate self-signed {eap}
When you type the command, the CLI prompts you to enter information to identify the
certicate. For example:
DWS-1008# crypto generate self-signed eap
Country Name: US
State Name: CA
Locality Name: San Jose campus
Organizational Name: D-Link
Organizational Unit: eng
Common Name: DWS-1008
Email Address: admin@example.com
Unstructured Name: DWS-1008 in wiring closet 120