Chapter 7 Advanced Expressions: Parsing SSL Certificates 147

Operations That Can Be Specified with the CLIENT.SSL.CLIENT_CERT Prefix

SSL Certificate Operation

Description

 

 

certificate.SUBJECT

Returns the Distinguished Name of the Subject as

 

a name-value. An equals sign (“=”) separates

 

names and values and a slash (“/”) delimits name-

 

value pairs.

 

Following is an example:

 

/C=US/O=myCompany/OU=www.

 

mycompany.com/CN=www.mycompany.

 

com/

 

emailAddress=myuserid@mycompany.

 

com

certificate.SUBJECT.

Returns the Subject as a name-value list, but

IGNORE_EMPTY_ELEMENTS

ignores the empty elements in the list. For

 

example, consider the following:

 

Cert-Issuer: /c=in/st=kar//

 

l=bangelore //o=mycompany/ou=sales/ /

 

emailAddress=myuserid@mycompany.com

 

The following Rewrite action returns a count of 6

 

based on the preceding Issuer definition:

 

sh rewrite action insert_ssl_header

 

Name: insert_ssl

 

Operation: insert_http_header

 

Target:Cert-Issuer

 

Value:CLIENT.SSL.CLIENT_CERT.ISSUER.

 

COUNT

 

However, if you change the value to the following,

 

the returned count is 9:

 

CLIENT.SSL.CLIENT_CERT.ISSUER.

 

IGNORE_EMPTY_ELEMENTS.COUNT

 

 

certificate.

Returns the Subject KeyID of the client certificate.

SUBJECT_KEYID

If there is no Subject KeyID, this operation returns

 

a zero-length text object.

Page 161
Image 161
Citrix Systems 9.2 manual Client.Ssl.Clientcert.Issuer, Ignoreemptyelements.Count