ltm rule command X509 subject
iRule(1) BIG-IP TMSH Manual iRule(1)
X509::subject
Returns the subject of an X509 certificate.
SYNOPSIS
X509::subject CERTIFICATE
DESCRIPTION
Returns the subject of the specified X509 certificate.
Syntax
X509::subject
* Returns the subject of the specified X509 certificate.
RETURN VALUE
Returns the subject of an X509 certificate.
VALID DURING
ANY_EVENT
EXAMPLES
when CLIENTSSL_HANDSHAKE {
# Check if the client supplied one or more client certs
if {[SSL::cert count] > 0}{
# Check the first client cert subject
if { [X509::subject [SSL::cert 0]] equals "someSubject" } {
log local0. "X509 Certificate Subject [X509::subject [SSL::cert 0]]"
pool my_pool
}
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)