appcmd

How to assign a SSL Certificate to IIS7 Site from Command Prompt

杀马特。学长 韩版系。学妹 提交于 2019-11-27 09:50:41
问题 Can you advise me whether it is possible or not to assign a SSL Certificate to a website in IIS7 using the APPCMD application? I am familiar with the command to set the HTTPS Binding appcmd set site /site.name:"A Site" /+bindings.[protocol='https',bindingInformation='*:443:www.mysite.com'] and how to obtain current mappings %windir%\system32\inetsrv\Appcmd but can not seem to find any way to map a site to a certificate (say the certificates hash for example) 回答1: The answer is to use NETSH.