Forum Discussion
IWhitmore
Nimbostratus
Jun 10, 2014Redirect SSL to SSL with header rewrite and certificates
Hi all. I have a question on using 301 or 302 redirects and SSL. I'm not sure if this can be solved by iRules.
The problem is the following:
X.bb.com is 1.1.1.1. If a user tries to connect ...
Steve_M__153836
Nimbostratus
Jun 10, 2014Sorry to just point you somewhere else, but this post/question has some good comments/answers on how you'll have to complete this. The short of it is you want an iRule to do a full redirect from y.bb.com to x.bb.com. An iRule redirect should not result in a cert error. However a DNS CNAME/Alias may result in a cert error.
IWhitmore
Nimbostratus
Jun 10, 2014Thanks for your reply Steve. You are right, it shouldn't result in a cert error if I redirect from HTTP to HTTPS or from HTTPS to HTTPS if I have a SAN cert for both sub-domains, or a wildcard or two separate SSL certs (one for x and one for y). The problem I have though is slightly different. If I only have a cert for x, how can I redirect an https request from y to x without it throwing a cert error?
The solution in the post you pointed to was to use the same DNS for both domains and have a SAN cert (which is not available to me) and then rewrite the header. It never says whether or not he actually got it working in the end. But having a SAN cert makes the problem a lot easier. Interesting one for a lab maybe.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
