Forum Discussion
Nuruddin_Ahmed_
Cirrostratus
Sep 06, 2016irule to pass the client authentication certificate to pool member
Hi,
I am using client certificate authentication with require option in one of the SSL profile. To the VS i have applied regular SSL profile which would offload the SSL. If the traffic would com...
Kai_Wilke
MVP
Sep 06, 2016Hi Nuruddin,
to forward the X509v3 client certificate of a mutual SSL handshake you may use the iRule below as a starting point...
when CLIENTSSL_HANDSHAKE {
if { [SSL::cert count] > 0 } then {
set x509cert [b64encode [SSL::cert 0]]
} else {
set x509cert ""
}
}
when HTTP_REQUEST {
HTTP::header remove "X-CLIENT-X509v3"
if { $x509cert ne "" } then {
HTTP::header insert "X-CLIENT-X509v3" $x509cert
} else {
HTTP::header insert "X-CLIENT-X509v3" "None"
}
}
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects