Forum Discussion
xuwen
Aug 19, 2021Cumulonimbus
use this code try it,here is the link about the irules for SSL::sni, https://clouddocs.f5.com/api/irules/SSL__sni.html
when HTTP_REQUEST {
if { [SSL::cert count] > 0 && [SSL::verify_result] == 0} {
if { [SSL::sni name] equals "ABC.com" } {
HTTP::header insert SSLClientCertSN [X509::serial_number [SSL::cert 0]]
}
}
}