26

I have an IIS 8 (win 2012 r2) server and i want to bind the same web site to 2 different domain and to 2 different certificates.

I can't use wildcard since the domains are different FQDNs.

If i add 2 bindings for https and port 443 i can't select 2 different certificates (when i change one binding it changes the other).

There is a way to solve this without using different port or splitting to 2 different websites?

Thanks!

2
  • Can you give us more infos what is the reason here? One possible option might be to redirect the one domain to the 2nd one. But that seamed to be to easy in your case ;-) Commented Nov 10, 2016 at 17:22
  • There is a simple way in this stackoverflow.com/a/27791857/3260008 Commented Jun 4, 2018 at 6:18

2 Answers 2

26

There is a simple way to do, tick the "Require Server Name Indication" in "Bindings...".

Reference: https://stackoverflow.com/a/27791857/3260008

2
  • 4
    This should be the accepted answer Commented Sep 25, 2020 at 11:16
  • ..and if you have more than one website, you should check that "require server name" in "bindings" (under Https - Edit) also is set for all the OTHER websites you have, or IIS could apply the certificate binded to a website to a different website. Commented Jul 21, 2022 at 15:43
2

I found the solution - using ssFlags = 1 https://www.iis.net/configreference/system.applicationhost/sites/site/bindings/binding

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.