X509::serial_number¶
Description¶
Returns the serial number of the specified X509 certificate.
Syntax¶
X509::serial_number <X509 certificate>
X509::serial_number <X509 certificate>¶
- Returns the serial number of the specified X509 certificate.
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]
}