Forum Discussion
Wesley_Graves_1
Nimbostratus
Nov 11, 2004Rule to assign different SSL Keys based on Host Header
Is there a way to assign different different SSL keys based on the incoming host header?
6 Replies
- rapmaster_c_127Historic F5 AccountThe question is somewhat ambiguous.
- Wesley_Graves_1
Nimbostratus
Basically what I have is a pool of web servers hosting 2 web sites on the same IP. Each web site uses a different domain name, but share a common Virtual Server. Is it possible to assign 2 SSL key/certificate pairs to 1 Virtual Server? - rapmaster_c_127Historic F5 AccountThere's no way to do this yet. However, we have an open CR for this, CR40685, we've looked at a prototype for this. If you have a support contract, perhaps it will benefit you to request scheduling of this CR.
- Brian_Hatch_102Historic F5 AccountThis shouldn't be possible. It's a limitation of how HTTPS works.
- rapmaster_c_127Historic F5 AccountActually, interestingly enough it's very much possible with a little trickery. Consider the case where 10.1.2.3 maps to "internal-hr.example.com" for the HR subnet of your intranet, and that same address maps to "internal-legal.example.com" for the legal dept subnet of your company. One should be able to decide which certificate to present based on L4 decisions (source IP for example.)
- rapmaster_c_127Historic F5 AccountOne last thing: I'll point out that there are indeed caveats with this approach. As bri correctly notes, there's no way you can get to the Host: header within the SSL encapsulation prior to the handshake, so you're somewhat relegated to using either <= L4 rules to pick the SSL certificate, or persistence.
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