Forum Discussion
Laurent_53635
Nimbostratus
Mar 13, 2008SSL Certificate client authentication irule
Hi all,
I am a LTM newbie and I'm pretty sure my question looks stupid but may be you can help me.
We have implementeda B-IP LTM with an https virtual server which require client certificate authnetification. It isdefined in a client SSL profile.
To imprrove support, we woul like to replace the standard error message "page cannot be displayed" by redirection a web mail chich give more information.
The 2 place irule winner "OCSP Authentication error redirect" seems to cover my need but when i want to apply this irule to my virtual server, it asks me to add an authentication profile.
To be honest, I have no idea which information I have to set inside a authentication profile in that case.
If you can help me.
Thanks
Hev a nice day.
Laurent
- Nicolas_Menant
Employee
Hi, - Laurent_53635
Nimbostratus
Hi, - Kevin_Stewart
Employee
This iRule is meant to be used in an OCSP authentication profile. Conceivably you could modify it to work in an HTTP iRule, but you'd need to strip out all of the AUTH events and do everything in HTTP_REQUEST. The only error you'd be able to capture is the certificate expired, which may or may not work depending on the LTM version. In an OCSP AUTH profile, you can also capture certificate invalids and revoked.when CLIENTSSL_CLIENTCERT { check the status of the client certificate store the value in the session table session add ssl [SSL::sessionid][X509::verify_cert_error_string [SSL::verify_result]] 21600 } when HTTP_REQUEST { set id [SSL::sessionid] look up session to find cert status if status is ok, insert a header set y [session lookup ssl $id] if { $y contains "ok" } { HTTP::header insert SSLClientCertStatus $y } else { HTTP::redirect -OR- HTTP::respond 200 content "Error Page..." } }
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