Example
The following example generates and displays a certificate request for HTTPS.
console#crypto certificate 1 request
console(config-crypto-cert)#
duration
Use the duration command in Crypto Certificate Generation mode to specify the duration.
Syntax
duration
days — Specifies the number of days a certification would be valid. If left unspecified, the
•
parameter defaults to 365 days. (Range: 30–3650 days)
Default Configuration
This command defaults to 365 days.
Command Mode
Crypto Certificate Generation mode
User Guidelines
This command mode is entered using the crypto certificate generate command.
Example
The following example displays how specify a duration of 50 days that a certification is valid.
console(config-crypto-cert)#duration 50
ip http port
Use the ip http port command in Global Configuration mode to specify the TCP port for use by
a web browser to configure the switch. To use the default TCP port, use the no form of this
command.
Syntax
ip http port
no ip http port
port-number — Port number for use by the HTTP server. (Range: 1–65535)
•
1122
Web Server Commands
days
port-number