title: Octopus Deploy - Deploy.ps1 script for setting up SSL bindings on IIS
body: <p>Using the octopus deploy script for creating websites found <a href="http://octopusdeploy.com/documentation/features/iis">here</a></p>
  
  <p>I am trying to setup up a website that uses SSL. I have changed the <code>http -&gt; https</code> and the variable is set to this <code>$MyWebAppIisBindings = "*:433:"</code></p>
  
  <p>This script does everything to create the new site and deploy my app except set a certificate.</p>
  
  <p>I have one certificate called <code>'webserver'</code> that can be selected from the combo box in the edit site bindings dialog in the IIS 7 Manager. selecting this manually makes the SSL work as expected.</p>
  
  <p>What Powershell <code>cmdlet</code> do I need to add to the deploy script in order to associate my certificate with my binding on IIS?</p>
  
  <p>(I'm a complete Powershell noob, please don't assume that I know anything about it in your answer) </p>
  
  <p>EDIT: I have progressed a little but I'm still lost</p>
  
  <pre><code># think I need to do something like this to get the certificate 
  # Get-Item cert:\LocalMachine\My\$siteCertThumb 
  # but I have no idea how to assign it to the 443 binding
  </code></pre>