Using the octopus deploy script for creating websites found here
I am trying to setup up a website that uses SSL. I have changed the http -> https
and the variable is set to this $MyWebAppIisBindings = "*:433:"
This script does everything to create the new site and deploy my app except set a certificate.
I have one certificate called 'webserver'
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.
What Powershell cmdlet
do I need to add to the deploy script in order to associate my certificate with my binding on IIS?
(I'm a complete Powershell noob, please don't assume that I know anything about it in your answer)
EDIT: I have progressed a little but I'm still lost
# 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