ltm rule command X509 serial number
iRule(1) BIG-IP TMSH Manual iRule(1)
X509::serial_number
Returns the serial number of an X509 certificate.
SYNOPSIS
X509::serial_number CERTIFICATE
DESCRIPTION
Returns the serial number of the specified X509 certificate.
Syntax
X509::serial_number
* Returns the serial number of the specified X509 certificate.
See AskF5 SOL9843: iRule command X509::serial_number returns SN
with leading zeroes truncated
RETURN VALUE
Returns the serial number of an X509 certificate.
VALID DURING
ANY_EVENT
EXAMPLES
when HTTP_REQUEST {
log local0. "Certificate Serial Number: [X509::serial_number cert_x]"
}
when HTTP_REQUEST {
set ssl_cert [SSL::cert 0]
HTTP::header insert SSLClientCertSN [X509::serial_number $ssl_cert]
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)