Forum Discussion
Tom_Lebel_53961
Nimbostratus
Jan 24, 2006Passing SSL Client Cert data - more info needed
We need to know:
1. Is this the best way to get client cert data to the web server? (We used to use it from the cgi collection, is there a way to get it into that collection again?)
2. What kind of load is it going to be on the BigIP with a few thousand users?
3. Why is it, this script only works if we remove the line that stuffs the serial_number into the http header?
4. The "session add ssl" line, it seems the number at the end is a timeout value for the session. What value should this be set at? It seems if this value is set to anything at or less than the "Cache timeout" value in the BigIP, we loose the client cert data at the server until the "Cache timeout" passes.
Thanks for any help.
when CLIENTSSL_CLIENTCERT {
set ssl_cert [SSL::cert 0]
set ssl_errstr [X509::verify_cert_error_string [SSL::verify_result]]
set ssl_stuff [list $ssl_cert $ssl_errstr]
session add ssl [SSL::sessionid] $ssl_stuff 61
}
when HTTP_REQUEST {
set ssl_stuff2 [session lookup ssl [SSL::sessionid]]
set ssl_cert2 [lindex $ssl_stuff2 0]
set ssl_errstr2 [lindex $ssl_stuff2 1]
if { $ssl_errstr2 eq "ok" } {
HTTP::header insert SSLClientCertStatus $ssl_errstr2
HTTP::header insert SSLClientCertSerialNumber [X509::serial_number $ssl_cert2]
HTTP::header insert SSLClientCertValidFrom [X509::not_valid_before $ssl_cert2]
HTTP::header insert SSLClientCertValidUtil [X509::not_valid_after $ssl_cert2]
HTTP::header insert SSLClientCertSubject [X509::subject $ssl_cert2]
HTTP::header insert SSLClientCertIssuer [X509::issuer $ssl_cert2]
} else {
HTTP::header insert SSLClientCertStatus $ssl_errstr2
}
}
11 Replies
Sort By
- Tom_Lebel_53961
Nimbostratus
Colin, - Tom_Lebel_53961
Nimbostratus
Hi,, I'm baaaack.when CLIENTSSL_CLIENTCERT { set ssl_cert [SSL::cert 0] set ssl_errstr [X509::verify_cert_error_string [SSL::verify_result]] set ssl_stuff [list $ssl_cert $ssl_errstr] session add ssl [SSL::sessionid] $ssl_stuff 61 } when HTTP_REQUEST { set ssl_stuff2 [session lookup ssl [SSL::sessionid]] set ssl_cert2 [lindex $ssl_stuff2 0] set ssl_errstr2 [lindex $ssl_stuff2 1] if { $ssl_errstr2 eq "ok" } { HTTP::header insert SSLClientCertStatus $ssl_errstr2 HTTP::header insert SSLClientCertValidFrom [X509::not_valid_before $ssl_cert2] HTTP::header insert SSLClientCertValidUtil [X509::not_valid_after $ssl_cert2] HTTP::header insert SSLClientCertSubject [X509::subject $ssl_cert2] HTTP::header insert SSLClientCertIssuer [X509::issuer $ssl_cert2] } else { HTTP::header insert SSLClientCertStatus $ssl_errstr2 } }
- JRahm
Admin
What messages, if any, are logged to /var/log/ltm following the choke? - Colin_Walker_12Historic F5 AccountThat's a pretty nasty choke, it sounds like. I'd recommend checking the logs, like citizen_elah said, and then I'd probably start removing a line from the rule at a time until the rule begins working again. If you can narrow it down to a particular line or a couple lines, it'd be far easier to identify the actual problem.
- Tom_Lebel_53961
Nimbostratus
A whole lot of stuff, most of which I can't post due to security restrictions. One thing that stands out is: - unRuleY_95363Historic F5 AccountDepending on whether or not you have a hotfix for 9.1.1, there were issues with the session command that have been fixed. You should definitely contact support.
- dimka___104021
Nimbostratus
I have same issue (tmm & bcm56xxd restars) on 9.1.1. But i'm not using sessions. Case is opened and waiting for hotfix. - William_Them_99
Nimbostratus
Once you get the hotfix applied, just as another method, we are passing the entire cert to the webserver in PEM format via something like this:HTTP::header replace SSLClientCert [X509::whole $the_cert]
- Tom_Lebel_53961
Nimbostratus
I have submitted a case with tech support, and will post the results as soon as I get them. - William_Them_99
Nimbostratus
I wonder if anyone can help me with a similar issue.
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