In IIS I need to map
www.example.com
andexample.com
to use a specific SSL certificate. I have tried usingappcmd
and editingapplicationHost.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 forexample.com
.
Answer
I’ve solved the question using this post. Basically adding an * to the beginning of the friendly name of the certificate will allow you to edit the host header for a HTTPS binding in IIS7 manager.
Attribution
Source : Link , Question Author : Josh M. , Answer Author : Josh M.