Score:0

IIS7.5 How to make a binding for 2 domains, 2 IPs and 2 certificates

pw flag

I am clutching at straws... hope you can help me with this old server.

I want to bind domain1.com to ip 123.456.7.1 and domain2.com to 123.456.7.2, each with its own certificate. As longs as I configure it for http, there's no issue. My bindings look like this:

          type   hostname       port    ip
site2 ->  http   domain1.com    80      123.456.7.1
site2 ->  http   domain2.com    80      123.456.7.2

But I want to bind a certificate to each site. I use the Certify-the-web installer to do this for me. This results in:

          type   hostname       port    ip
site1 ->  http   domain1.com    80      123.456.7.1
          https  domain1.com    443     123.456.7.1

site2 ->  http   domain2.com    80      123.456.7.2
          https  domain2.com    443     123.456.7.2

Which works fine for domain1, but gives a wrong certificate warning for domain2 (according to Chrome and Firefox it uses the cert of domain1). It has the right certificate selected in both https bindings when I inspect them. I did restart each site in IIS.

What am I doing wrong?

Thanks in advance!

vidarlo avatar
ar flag
Don't use Windows Server 2008R2. It's End Of Life. Upgrade to supported software.
cn flag
Inspect the output of `netsh http show sslcert`. Does it show different certs for the two sites?
Diederik Slob avatar
pw flag
@PeterHahndorf Yes, I do have two sites under the same application id, dunno if that's a problem. Both entries are the same except for ip and cert hash.
cn flag
Your setup should work, hard to figure out why it doesn't. I would delete the sites and start over from scratch.
Diederik Slob avatar
pw flag
@PeterHahndorf Alright, it's good to know that I didn't go in the wrong direction. Hard to find good instructions. Thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.