I understand that IIS stores binding information in applicationhost.config file. However, in that file it does not store such information which would tell which SSL certificate is bound to which binding for a specific site.
I have a site named example.com which has several SSL bindings. I don't have a wildcard SSL certificate, just a SAN certificate corresponding to each of the subsdomainxxx.example.com
Now the problem is setting the bindings one by one is cumbersome and hard. Is there a way to programming set a specific certificate for all SSL protocol bindings for a given site?
Preferably, using command prompt. The process could become much easier too if I need where I could edit these mappings in some config file (such as applicationhost.config) for SSL bindings for more sites that I have on my server.
Any help is appreciated.
HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\Ssl*BindingInfo, To set a new certificate, look into:netsh http add sslcert hostnameport=www.my.site:443 certhash=$certthumbprint appid={someguid} certstorename=MYlots of examples out there.