Forum Discussion
Miguel_111028
Oct 24, 2008Nimbostratus
Hello,
Thanks you, Stefan, for the reply, this solve the X-Forwarded-For issue.
For the X-Client-Cert header insertion problem, I think the following iRule can make what I need, Please, can anyone confirm?
when CLIENTSSL_HANDSHAKE
{
set cur [SSL::sessionid]
set ask [session lookup ssl $cur]
if { $ask eq "" } {
session add ssl [SSL::sessionid] [SSL::cert 0]
}
}
when HTTP_REQUEST
{
set id [SSL::sessionid]
set the_cert [session lookup ssl $id]
if { $the_cert != ""}
{
HTTP::header insert X-Client-Cert [X509::whole $the_cert]
}
}
Thanks you and regards.
Miguel.