Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have purchased an SSL certificate and I should be able to configure IIS 7 to use that certificate for both https://domainname and https://www.domainname

I have looked online but didn't find a solution so far. Is this possible to do? According to the company that issues SSL, a single SSL can be used in both cases.

Thank you

share|improve this question
Those should be slashes (/) rather than backslashes (\). – Dennis Williamson Jan 24 '11 at 18:25
@Dennis - then jump in and fix it ;) – Mark Henderson Jan 24 '11 at 21:25
@Mark: I often do ;) – Dennis Williamson Jan 24 '11 at 22:15
@Dennis - I know, sorry, it was a bit tongue in cheek – Mark Henderson Jan 24 '11 at 22:19
@Mark: I saw the ;) wink. – Dennis Williamson Jan 24 '11 at 22:30

If you have purchase a standard, single domain SSL certificate, then it will be for one domain, so you can only use it for or

If you have purchased a wildcard or UCC certificate then it will allow either unlimited subdomains (in the case of a wildcard) or mulitple domains up to a certain number (in the case of UCC).

share|improve this answer
Don't know if it's the case here, but many CAs will issue a cert for both and even when you request just one or the other. – Chris S Jan 24 '11 at 18:14
Worth mentioning that a wildcard certificate that covers * will not cover (but will cover in some browsers – Mark Henderson Jan 24 '11 at 21:26
True, and yes I should have mentioned that, some CAs will issue both in either 2 certs or a single UCC one. – Sam Jan 24 '11 at 22:07

It depends on how you have IIS configured. If you are certain the cert has both and in the SN and/or SAN then it will work for both, simple configure it in the bindings for the site(s). If you don't know how to configure the cert in the bindings section of IIS, then that's a wholely different problem.

share|improve this answer
Hi, thank you for the reply. Yes, I have been looking at bindings, but IIS7 does not allow me to use the same certificate for two different domain names. – vikp Jan 24 '11 at 18:32
Can you be more specific as to how it is not allowing you to set the binding? – Chris S Jan 24 '11 at 19:21

You should just buy one for either or and redirect the other one to the one you decided to SSL

share|improve this answer
You cannot redirect one domain to another if it comes from the https protocol because first of all it checks if the certificate is valid, hence if there is no certificate for - it will fail the check and the actual redirect (on server level) will not take place. – Alex Under May 22 '15 at 11:21

As Chris S alluded to, just go with a Provider that will give you a Subject Name Alternative so both and can be used.

DigiCert's "SSL Plus" certificate offers this for example (not affiliated, but a customer).


share|improve this answer

You could direct to and use the SSL on

share|improve this answer
Yes, that strategy works most of the time. However, it doesn't work if the user types in or has a bookmark for: The browser will display the security warning before the redirect occurs. – Shai Jan 6 '15 at 2:07

Your Answer


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.