43
RSA and Certificate Commands
Syntax
crypto key generate dsa
Parameters
N/A
Default Configuration
The application creates a default key automatically.
Command Mode
Global Configuration mode
User Guidelines
DSA keys are generated in pairs - one public DSA key and one private DSA key.
If the device already has DSA keys default or user defined, a warning is displayed
with a prompt to replace the existing keys with new keys.
Erasing the startup configuration or returning to factory defaults automatically
deletes the default keys and they are recreated during device initialization.
This command is not saved in the Running configuration file. However, the keys
generated by this command are saved in a private configuration (which is never
displayed to the user or backed up to another device).
See Keys and Certificates for information on how to display and copy this key pair.
Example
The following example generates a DSA key pair.
switchxxxxxx(config)#
crypto key generate dsa
The SSH service is generating a private DSA key.
This may take a few minutes, depending on the key size.
..........
819
OL-32830-01 Command Line Interface Reference Guide