Welcome! Log In Create A New Profile

Advanced

Re: Prevent Chrome SSL Domain Mismatch Warning When Redirecting

Jonathan Matthews
January 02, 2013 04:36PM
On 2 January 2013 21:16, Chris Irish <supairish@gmail.com> wrote:
> Hello,
> I have a SSL cert setup for a domain with no subdomain, i.e.
> mydomain.org. And a server block setup to redirect all https 'www'
> subdomain requests to the non subdomain server block. This works fine in
> Safari, FF, etc. But Chrome gives me a certificate domain name mismatch
> warning ( The big red warning screen ) How can I prevent this? It's like
> Chrome checks the SSL cert name before even following the nginx redirect.

Of course it does. That's how SSL works.

You're serving up the certificate for azcharters.org where browsers
(it's not just Chrome!) are expecting one that identifies itself as
belonging to www.azcharters.org. You need to serve up a certificate
that matches www.azcharters.org in its Common Name (CN) or Subject
Alternative Name (SAN), just for the redirect listener block.

If you only have a single IP to serve both :443 listeners, by the way,
you're out of luck with your current cert. You'd have to find an SSL
vendor who'll sell you a single cert with (say) azcharters.org in the
CN and www.azcharters.org in the SAN. This may be more expensive than
you'd expect and - to be honest - I wouldn't bother.

Regards,
Jonathan
--
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Prevent Chrome SSL Domain Mismatch Warning When Redirecting

Chris Irish January 02, 2013 04:18PM

Re: Prevent Chrome SSL Domain Mismatch Warning When Redirecting

Jonathan Matthews January 02, 2013 04:36PM

Re: Prevent Chrome SSL Domain Mismatch Warning When Redirecting

Reinis Rozitis January 03, 2013 07:44AM

Re: Prevent Chrome SSL Domain Mismatch Warning When Redirecting

SupaIrish January 03, 2013 02:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready