subject
Syntax
subject [common-name <COMMON-NAME>] [country <COUNTRY>] [locality <LOCALITY>] [org <ORG-NAME>]
[org-unit <ORG-UNIT>] [state <STATE>]
Description
Sets the subject fields for the current leaf certificate. If the
common-name
parameter is not specified, then you are prompted to define a value for each field. If a configured value exits for any field, it is presented as the default.
The subject fields of the default certificate
local-cert
cannot be changed.
Command context
config-cert-<CERT-NAME>
Parameters
common-name <COMMON-NAME>
- Specifies the common name.
country <COUNTRY>
- Specifies the region.
locality <LOCALITY>
- Specifies the locality.
org <ORG-NAME>
- Specifies the organization.
org-unit <ORG-UNIT>
- Specifies the organizational unit.
state <STATE>
- Specifies the state.
Authority
Administrators
Examples
Setting subject fields for the leaf certificate my-leaf-cert:
switch(config-cert-my-leaf-cert)# subject common-name MyLeaf01 country USA locality NY org MyCompany org-unit UNIT1 state NY
Setting subject fields for the leaf certificate my-leaf-cert interactively:
switch(config-cert-my-leaf-cert)# subject Do you want to use the switch serial number as the common name (y/n)? n Enter Common Name : MyLeaf01 Enter Org Unit : UNIT1 Enter Org Name : MyCompany Enter Locality : NY Enter State : NY Enter Country : USA switch(config-cert-my-leaf-cert)#