In IIS I need to map www.example.com
and example.com
to use a specific SSL certificate. I have tried using appcmd
and editing applicationHost.config
but I don't see how to tie each host-header to a specific certificate. If I add the bindings in the config file and then look in the UI, no certificate is applied to bindings.
The certificate is for www.example.com
but has an alias for example.com
.