Hi Eric,
the iRule looks very valid. Could be the case that a leading or trailing line may cause this issue...
So clear the content of your existing iRule using STRG+A -> STRG-X and then STRG-C -> STRG-V the iRule below...
when HTTP_REQUEST {
if { [SSL::cert count] > 0 } then {
set clientcert [SSL::cert 0]
set clientdn [X509::subject [SSL::cert 0]]
set clientserial [X509::serial_number [SSL::cert 0]]
HTTP::header insert XClientCert [b64encode $clientcert]
HTTP::header insert XClientDN $clientdn
HTTP::header insert XClientSerial $clientserial
}
}
Cheers, Kai