Forum Discussion
Lee_Sutcliffe
Nacreous
Mar 26, 2010irule to select SSL client cert based on HTTP header
I've wrote a simple irule that forwards requests to a relevent pool based on the contents of the HTTP header.
This works fine for HTTP requests however I'd like to ammend it so that in addition to forwarding to the correct pool, it also selects the correct SSL client profile.
This is the irule I have for the http requests
when HTTP_REQUEST {
if {[HTTP::header "host"] contains {abc}} {
pool abc-pool
}
else{pool xyz-pool}
}
Any help would be appreciated.
Thanks
- L4L7_53191
Nimbostratus
The trick here is that by the time you're able to get at the HTTP header information, your SSL session has already been established. As of now, I don't know of a good way to do this. How many ssl profiles are you looking to switch on? - Lee_Sutcliffe
Nacreous
At this stage only two profiles, although this may increase over time - hoolio
Cirrostratus
As Matt suggested, there isn't a way to select the client side SSL profile based on HTTP information with current browsers. See this post for some options: - Lee_Sutcliffe
Nacreous
Hmm.. that’s annoying! - hoolio
Cirrostratus
Hi Lee,
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