Forum Discussion
joelvs_45274
Nimbostratus
May 16, 2008redirects before ssl on an ssl virtual server
I have a developer that has requested a redirect for his SSL protected site. I have tried multiple things with irules and not had any success.
The scenario is that we have a site https://www.xyz.com. The certificate was generated for www.xyz.com. However, users are hitting the site via https://xyz.com. Being as the www isn't in the hostname and error comes up that the cert doesn't match the hostname.
On the http virtual server, I added an iRule that redirects to www.xyz.com if the www doesn't exist. On the https virtual server, the certificate error comes up prior to it getting to the redirect. If I accept the certificate manually, it will redirect me to https://www.xyz.com
Is there a way to make the redirect happen before the ssl certificate is provided? The other option I had thought of is to use the iRule to enable ssl after the redirection, but I haven't been able to make that work successfully either.
Any suggestions would be greatly appreciated. I have done quite a bit with iRules, but am not an expert by any stretch of the imagination.
- Kevin_Sanders_5
Nimbostratus
I am also very interested in this. Let me know if you figure it out. - Colin_Walker_12Historic F5 Account
I guess this work-around would kind of cheat the whole certificate buying process as you could have multiple domains with a single cert but it's got to be possible to redirect before the SSL handshake.
- hoolio
Cirrostratus
Assuming you're administratively able to, you can actually get a single cert which is valid for www.abc.com, abc.com and even xyz.com using subject alternate names (SANs). (Click here) for details. As Colin notes, you cannot read or modify the HTTP content encrypted within the HTTPS.
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