Forum Discussion
Alex_Moundalexi
Nimbostratus
Mar 14, 2008OCSP w/ requested client certifications.
When configuring a virtual server client certificates can be ignored, requested, or required.
Is there a way to determine what how a particular VS is configured to handle client certificates?
When an authorization profile is used that utilizes OCSP, a client certificate needs to be present. The default iRule handles things just fine if the certificate is required, but balks when a certificate isn't presented.
I was looking at PROFILE::clientssl but the syntax of the command isn't explained on the wiki at all. I know there's a mode setting (that returns 0 for SSL, 1 for non-SSL), but other than that I haven't found any reference to other parameters.
- Colin_Walker_12Historic F5 AccountHere's a great example in the codeshare that you may want to take a look at: Click here.
} elseif {([matchclass [TCP::local_port] equals $::vip_http_ports]) }{ Request was to an HTTP port, not an HTTPS port, so disable client SSL profile if one is enabled on the VIP set vip_http_port 1 if {$::debug}{log local0. "HTTP request from [IP::client_addr] to [IP::local_addr]:[TCP::local_port]"} Check to see if there is a client SSL profile and if so, disable it if { [PROFILE::exists clientssl] == 1} { if {$::debug}{log local0. "Client SSL profile enabled on VIP. Disabling SSL"} set disable_cmd "SSL::disable" eval $disable_cmd } }
- Alex_Moundalexi
Nimbostratus
This still doesn't solve the issue of determining when you want the profile enabled/disabled, but at least it shows you how to turn it on/off.
- Colin_Walker_12Historic F5 AccountAnd what piece of data in the client request would you use to make that determination? If you can't determine which profile to use before connecting to the server, then you have to use a default profile to connect, at which point it's too late to force a require or ignore.
- Alex_Moundalexi
Nimbostratus
And what piece of data in the client request would you use to make that determination? If you can't determine which profile to use before connecting to the server, then you have to use a default profile to connect, at which point it's too late to force a require or ignore.
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