Home All Groups Group Topic Archive Search About
Author
30 Nov 2008 2:17 AM
Gilly G
I have a single ssl website which can be pulled up on the browser using two
methods:  https://www.website.com and https://website.com.  I currently have
both a wildcard ssl certificate *.website.com and a normal ssl
www.website.com.  After install the wildcard ssl certificate, I can only get
www.website.com to browse without a certificate error.  When I use
https://website.com the certificate throws an error of invalid certificate.

How do I configure IIS 6.0 so that if a customer uses https://website.com
and https://www.website.com that they do not get a invalid certificate
message for either format?

Author
1 Dec 2008 11:05 AM
David Wang
On Nov 29, 6:17 pm, Gilly G <Gil***@discussions.microsoft.com> wrote:
> I have a single ssl website which can be pulled up on the browser using two
> methods:  https://www.website.comandhttps://website.com.  I currently have
> both a wildcard ssl certificate *.website.com and a normal sslwww.website..com.  After install the wildcard ssl certificate, I can only getwww.website.comto browse without a certificate error.  When I usehttps://website.comthe certificate throws an error of invalid certificate.
>
> How do I configure IIS 6.0 so that if a customer useshttps://website.com
> andhttps://www.website.comthat they do not get a invalid certificate
> message for either format?


It depends on whether you want separate IP address or multi-subject
certificates.

You need to either:
1. Have a single certificate which has multiple CN subject names for
both website.com as well as www.website.com (*.website.com is not
sufficient -- it does not match "website.com")
2. Map website.com and www.website.com to two different IP addresses,
each to a different IIS website, each with its own SSL certificate for
a single host name.

This really has very little to do with IIS. The costs are completely
due to how SSL works as well as how web browsers warn.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Author
2 Dec 2008 12:12 PM
Daniel Crichton
Gilly wrote  on Sat, 29 Nov 2008 18:17:00 -0800:

> I have a single ssl website which can be pulled up on the browser using
> two  methods:  https://www.website.com and https://website.com.  I
> currently have  both a wildcard ssl certificate *.website.com and a
> normal ssl  www.website.com.  After install the wildcard ssl
> certificate, I can only get  www.website.com to browse without a
> certificate error.  When I use  https://website.com the certificate
> throws an error of invalid certificate.

> How do I configure IIS 6.0 so that if a customer uses
> https://website.com  and https://www.website.com that they do not get a
> invalid certificate  message for either format?


You use 2 different IPs with 2 SSL certs mapped to the same physical file
structure (so they run as 2 different sites but pulling the same files from
the same location), or you get a cert with multiple CN parts in it
(www.website.com and website.com). Your problem is that *.website.com does
not match website.com - *. literally means "any characters followed by a
fullstop" and there is no fullstop at the start of your second URL; https://website.com
is not the same as https://.website.com  (notice the . before the
website.com hostname).

This is not something that can be "fixed" with IIS6 using the certificate
you have - it's the browser that interprets the CN part of the certificate
and compares to the hostname in the request, all IIS6 is doing is sending
the SSL cert mapped to the IP and this is working as expected.

--
Dan
Author
2 Dec 2008 12:17 PM
Daniel Crichton
Daniel wrote to Gilly G on Tue, 2 Dec 2008 12:12:26 -0000:

Show quoteHide quote
> Gilly wrote  on Sat, 29 Nov 2008 18:17:00 -0800:

>> I have a single ssl website which can be pulled up on the browser
>> using two  methods:  https://www.website.com and https://website.com.
>> I currently have  both a wildcard ssl certificate *.website.com and a
>> normal ssl  www.website.com.  After install the wildcard ssl
>> certificate, I can only get  www.website.com to browse without a
>> certificate error.  When I use  https://website.com the certificate
>> throws an error of invalid certificate.

>> How do I configure IIS 6.0 so that if a customer uses
>> https://website.com  and https://www.website.com that they do not get
>> a invalid certificate  message for either format?


> You use 2 different IPs with 2 SSL certs mapped to the same physical
> file  structure (so they run as 2 different sites but pulling the same
> files from  the same location), or you get a cert with multiple CN
> parts in it  (www.website.com and website.com). Your problem is that
> *.website.com does  not match website.com - *. literally means "any
> characters followed by a  fullstop" and there is no fullstop at the
> start of your second URL; https://website.com  is not the same as
> https://.website.com  (notice the . before the  website.com hostname).

> This is not something that can be "fixed" with IIS6 using the
> certificate  you have - it's the browser that interprets the CN part of
> the certificate  and compares to the hostname in the request, all IIS6
> is doing is sending  the SSL cert mapped to the IP and this is working
> as expected.

Damn, David beat me to it. His reply wasn't showing up when I originally
checked the newsgroup ... :(

--
Dan