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

The answer is to use NETSH.
For example

netsh http add sslcert ipport=0.0.0.0:443 certhash="baf9926b466e8565217b5e6287c97973dcd54874" appid='{ab3c58f7-8316-42e3-bc6e-771d4ce4b201}'

Leave a Comment