Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This may sound a little stupid, but I'm more of a dev guy than a server admin and I am incredibly boneheaded when it comes to IIS. So please bear with me here.

I currently have a client that has a dedicated 2K3 box running IIS6. They are hosting one site on this box, with two domains resolving to that site (domain1.com, domain2.com). The site is stored in the typical C:\Inetpub\www folder. In addition, there is a section of the site that is protected by SSL. There are two SSL certs, one for each domain.

When a user goes to https: // domain1 . com, everything is fine. However, when the user goes to https: // domain2 . com, Internet Explorer kicks up a security warning. Obviously, this is not what we want. (I had to put spaces in the URL because ServerFault won't let me post more than one URL at a time since I'm new here).

Here is a bit of information as best as I can give it about the site setup in the IIS Manager.

There are two sites listed here, "domain1.com" and "Administration". When I go into the properties for domain1.com, the IP address has a value of "(All Unassigned)".

Under Advanced, "domain2.com" is listed with an IP address of "Default". Also, in "Multiple SSL identities for this Web site" there is one entry with the IP address of "Default" and the standard SSL port of 443.

I can view the certificate for domain1.com under "Directory Security > View Certicate". It appears everything is OK there.

So, to recap: I am trying to set up separate SSL certificates for separate domains that both lead to the same place. Is this possible? If anyone can explain the process to me (and dumb it down as much as possible) or at least point me in the right direction, it would be greatly appreciated.

Please let me know if this doesn't make any sense, or if I didn't provide you with enough (or the right) information.

share|improve this question

2 Answers 2

The best solution is to use a Unified Communications certificate that allows you to include multiple domains in one certificate. Just include both domains in the certificate and you're done. No need to worry about extra IP address or different ports, etc.

share|improve this answer
    
I've seen these called wildcard certs in the past (allows for *.domain.com all hosted on the same box). –  Milner Nov 4 '09 at 16:26
    
A wildcard cert can serve the same purpose if all the hostnames that need to be secured are on a single base domain (mail.domain.com, www1.domain.com, etc.) In this case, he would need a UC cert because he needs to secure two different base domains (domain1.com and domain2.com). –  Robert Nov 5 '09 at 14:30

You can't use virtual hosts with SSL, so to host two sites both using SSL you have to have 2 ip addresses, each one with a specific host and ssl cert bound to it.

In short you need 2 ip addresses on your server, one bound to domain1.com, and one bound to domain2.com, and 2 IIS sites one for domain1.com, and one for domain2.com. They can both serve up the same content, but will need to be separate sites.

Apache supports something called SNI (see here) which allows you to do vhosts with SSL but this isn't support by IIS currently.

share|improve this answer
2  
In addition to using multiple IPs, you can have a single IP but different (obviously non-standard) ports, and then have a proxy in accelerator mode in front of the server to accept incoming requests and direct them to the correct IP and/or port number. –  Max Alginin Nov 3 '09 at 22:41
    
IIS kind of has support if you use wildcard domains like *.domain.com. This was introduced in Server 2003 R2. IIS Manager doesn't support it but you can use adsutil or edit metabase.xml directly. It's quirky and you need to make sure that you understand what it's doing, that's why the IIS team haven't enabled it in IIS7 Manager either yet. However, as recommended, having a dedicated IP and site per domain name is the ideal solution and the only clean solution for 2 different domain names (domain1.com and domain2.com). –  Scott Forsyth - MVP Nov 3 '09 at 23:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.