I have a Sparkle service (Http.sys) which I want to be able to reach with (for example) https://abc.com and https://xyz.com. I have 2 different SSL certs installed for each of the domains, and I've bound both to port 443 using the 'Http.sys Config Tool' . The problem is I can't see anyway to get the service to present the correct certificate for the appropriate URL request (abc.com vs xyz.com). It always just uses the certificate for abc.com, probably because it's first in the list.
From what I've read it looks like this is possible when using IIS, using 'Server Name Indication' (SNI). Is there anything similar we can use with standalone Http.sys services? Maybe using the AppID of the SSL binding to differentiate?
Managed to answer my own question. Instead of using the 'HTTP Config Tool', which can only bind to a combination of IP address and port, used the Netsh command to bind each certificate to the hostname you are listening on, so :