In IIS I need to map www.domain.com and domain.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.domain.com but has an alias for domain.com.