Forum Discussion
William_Them_99
Nimbostratus
Jul 20, 2005Client Certificates at the Backend?
We have successfully configured the BIGIP device to require client certificates - it accepts the certs and passes the traffic through. Now, we need to be able to read and manipulate the client cert a...
rapmaster_c_127
Jul 20, 2005Historic F5 Account
Try this on a virtual server with an attached SSL and HTTP profile:
rule foo {
when HTTP_REQUEST {
if {[SSL::cert count] > 0} {
HTTP::header replace SSLClientCert [b64encode [SSL::cert 0]]
}
}
}
This BASE64-encodes the client certificate, if any, into an HTTP header called "SSLClientCert", replacing it if the client already has a header by that name. You'd need to BASE64-decode it on the back-end, and then you'd have the original certificate again.
Let us know if this works for you.
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