title: Binding SSL certificate by name using command line
body: <p>Trying to automate IIS setup for my website using InnoSetup including setting up the SSL certificate.</p>
  
  <p>I've been successful with creating the self-signed SSL cert using SelfSSL, so far everything works ok except that I'm not sure how to automate the last process of binding the SSL cert (created using SelfSSL) to my website.</p>
  
  <p><img src="https://i.stack.imgur.com/e5JyU.png" alt="enter image description here"></p>
  
  <p>Referring to the picture above, how can I use command line to tell IIS bind the SSL cert (which named "Testing" in this case) to my website?</p>
  
  <p>P/S: There's another similar question here:
  <a href="https://stackoverflow.com/questions/591597/how-to-assign-a-ssl-certificate-to-iis7-site-from-command-prompt">How to assign a SSL Certificate to IIS7 Site from Command Prompt</a></p>
  
  <p>But that requires the person who run the command to get hold of the <em>certhash</em> beforehand.</p>