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...
KevinB_49644
Nimbostratus
Jul 06, 2007Here is the irule that I have working to get me the certificate information. It does pass it to Oracle in PEM format.
I will post my Java solution to dealing with this next
when CLIENTSSL_CLIENTCERT {
if { [SSL::verify_result] } {
log LOCAL0.warn "Client cert didn't verify, openssl code=[SSL::verify_result]"
reject
}
}
when HTTP_REQUEST {
if { [HTTP::header exists SSL_Client_Cert] } {
log LOCAL0.warn "removed inbound cert header - possible attack"
reject
}
if { [SSL::cert count] != 0 } {
set subject { }
lappend subject [X509::subject [SSL::cert 0]]
HTTP::header replace SSL_Client_Cert [X509::whole [SSL::cert 0]]
HTTP::header replace SSL_Client_Cert_Chain_1 [X509::whole [SSL::cert 1]]
}
}
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