Is there anyway to select or change the SSL client profile based on hostname?
If is easy to find the hostname in an HTTP_REQUEST but then how could you set the SSL client profile? I am trying to have one VIP for multiple SSL sites each with different SSL certificates for each.
There actually is a way though, but it involves thinking a little unconventionally.
If you allow someone to hit an HTTP page first (on an unencrypted or known-SSL channel prior to redirecting them), and set up a session entry for them based on their source IP address in an iRule, you could retrieve this session entry later at the beginning of an SSL session and use the SSL::profile command to choose the ssl profile you’re going to use.
Note that it’s far from foolproof, and may not work for megaproxies and NATs, but it does sorta work.
This really isn’t an issue with iRules or the BIG-IP. This is a protocol issue. There really is no “good” way to make this work, as you have to decrypt the traffic to have the HTTP data available, and by that time you can’t choose which SSL profile to use, unless you re-encrypt.
RE: SSL client profile based on hostname by hamish@ba.com
Posted By Colin on 05/30/2008 4:44 PM
This really isn’t an issue with iRules or the BIG-IP. This is a protocol issue. There really is no “good” way to make this work, as you have to decrypt the traffic to have the HTTP data available, and by that time you can’t choose which SSL profile to use, unless you re-encrypt.
Colin
RFC4366 allows this (TLS Extensions) with the Server Name Indication. Apache 2.x does it, so until F5 supports it, you could offload to separate apache instances instead (But you lose the HW assist of the F5 though).
Hopefully the hw on the F5’s is flexible enough to allow the extensions… (It requires a new extended client & server hello message during negotiation)
H
Very interesting… this shows a lot of promise. I couldn’t find too much detail on browser support for the TLS extension though. There is a PDF presentation (Click here) which indicates that the only IE version which supports the extension is IE7 on Vista or later. Of course most recent open source browsers seem to support it.
I’m guessing it won’t be a practical solution until there is better IE support. That said, it would still be nice to get F5 to support this. Do you know if there is already a CR noting the request? If so, can you provide it so others can attach cases to it?
The RFE CR to support the “server_name” extension from RFC3546 and RFC4366 is 94903. I would echo your request to have customers contact support in this matter.
If you can get a single cert which is valid for all hostnames that resolve to the VIP address, then yes, you can decrypt all requests. This could be a wildcard cert or a cert which uses Subject Alternate Names (SANs).
From LTM’s perspective it doesn’t make a difference. LTM will use either type of cert to decrypt the SSL. There is a difference in functionality though:
not valid for any domain that isn’t explicitly specified
Also note that there might not be universal browser support for SAN’s. I haven’t seen issues with modern browser versions, but it’s something to look into.