subject-name (crypto ca certificate map)
To indicate that rule entry is applied to the subject DN of the IPsec peer certificate, use the subject-name command in crypto ca certificate map configuration mode. To remove an subject-name, use the no form of the command.
subject-name [ attr tag eq | ne | co | nc string ]
no subject-name [ attr tag eq | ne | co | nc string ]
Syntax Description
attr tag |
Indicates that only the specified attribute value from the certificate DN will be compared to the rule entry string. The tag values are as follows: DNQ = DN qualifierGENQ = Generational qualifierI = InitialsGN = Given nameN = NameSN = SurnameIP = IP addressSER = Serial numberUNAME = Unstructured nameEA = Email addressT = TitleO = Organization NameL = LocalitySP = State/ProvinceC = CountryOU = Organizational unitCN = Common name |
co |
Specifies that the rule entry string must be a substring in the DN string or indicated attribute. |
eq |
Specifies that the DN string or indicated attribute must match the entire rule string. |
nc |
Specifies that the rule entry string must not be a substring in theDN string or indicated attribute. |
ne |
Specifies that the DN string or indicated attribute must not match the entire rule string. |
string |
Specifies the value to be matched. |
Command Default
No default behavior or values.
Command Modes
The following table shows the modes in which you can enter the command:
Command Mode |
Firewall Mode |
Security Context |
|||
---|---|---|---|---|---|
Routed |
Transparent |
Single |
Multiple |
||
Context |
System |
||||
Crypto ca certificate map configuration |
|
|
|
|
— |
Command History
Release |
Modification |
---|---|
7.0(1) |
This command was added. |
Examples
The following example enters the ca certificate map configuration mode for certificate map 1 and creates a rule entry indicating that the Organization attribute of the certificate subject name must be equal to Central:
ciscoasa(config)# crypto ca certificate map 1
ciscoasa(ca-certificate-map)# subject-name attr o eq central
ciscoasa(ca-certificate-map)# exit