console(config-crypto-cert)#country us
crypto certificate generate
Use the crypto certificate generate command in Global Configuration mode to generate a
self-signed HTTPS certificate.
Syntax
number
crypto certificate
number — Specifies the certificate number. (Range: 1–2)
•
•
generate — Regenerates the SSL RSA key.
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode
User Guidelines
This command is not saved in the router switch configuration; however, the certificate and keys
generated by this command are saved in the private configuration. This saved information is
never displayed to the user or backed up to another switch. If the RSA keys do not exist, the
generate parameter must be used.
Example
The following example generates a self-signed HTTPS certificate.
console(config)#crypto certificate 1 generate
console(config-crypto-cert)#
crypto certificate import
Use the crypto certificate import command in Global Configuration mode to import a
certificate signed by the Certification Authority for HTTPS.
Syntax
number
crypto certificate
number — Specifies the certificate number. (Range: 1–2)
•
generate
import
Web Server Commands
1119