Cisco Systems SPS2024 Switch User Manual


 
27
SPS208G/SPS224G4/SPS2024 Command Line Interface Reference Guide 361
RSA and Certificate Commands
crypto certificate generate
The crypto certificate generate Global Configuration mode command generates a
self-signed HTTPS certificate.
Syntax
crypto certificate [
number
] generate [key-generate
length
] [cn
common- name
]
[ou
organization-unit
] [or
organization
] [loc
location
] [st
state
] [cu
country
] [duration
days
]
Parameters
number
— Specifies the certificate number. (Range: 1-2)
key-generate — Regenerate the SSL RSA key.
length
— Specifies the SSL RSA key length. (Range: 512-2048)
common- name
— Specifies the fully qualified URL or IP address of the
device. (Range: 1-64)
organization-unit —
Specifies the organization-unit or department
name.(Range: 1-64)
organization —
Specifies the organization name. (Range: 1-64)
location
— Specifies the location or city name. (Range: 1-64)
state
— Specifies the state or province name. (Range: 1-64)
country
— Specifies the country name. (Range: 2-2)
days
— Specifies number of days certification is valid. (Range: 30-3650)