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.

My question is very similar to this one: IIS 7.0 install two SSL certificates with two different host headers except that my domains are totally different:

1 SSL for http://domain1.com 1 SSL for http://domain2.com

I installed my certificates as described in that question/answer but if I navigate do domain2.com (which I binded via appcmd ...) I get the certificate for domain1.com. Therefor if I open the bindings via IIS7 I see that domain2.com use the wrong certificate, but if I change it will change for domain1.com too.

I really don't know how to solve this issue!

Thanks

share|improve this question
add comment

3 Answers 3

up vote 1 down vote accepted

You can't. An SSL certificate applies to a whole port/ip combination because the host header is encrypted so can't be used at that stage.

The question you refer to suggests to apply a single wildcard certificate to both domains because the single certificate is relevant to both domains. The option allows a single certificate to be applied to multiple sites. Where the domains are entirely different this won't work. You are trying to apply multiple certificates.

If you have two seperate domains that you want to use SSL on then you will need two seperate IP addresses.

share|improve this answer
add comment

You can only do this with a multi domain certificate. These are usually more expensive than regular certificates but allow you to add multiple totally different domain names to a single certificate.

share|improve this answer
add comment

If the web server is behind a load balancer it would make sense to run the https element on a non-standard port and redirect it using said load balancer. This will allow you to run multiple certificates.

share|improve this answer
add comment

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.