Programmatically assigning an existing ssl cert to a website in iis6 via powershell or vbscript
- by dagda1
Hi,
I have the following powershell script that creates a new website in IIS6:
https://github.com/dagda1/iis6/blob/master/create-site.ps1
Does anyone know how I can assign an existing ssl cert to the website?
I know I can set the port number using adsutil.vbs like this:
cscript adsutil.vbs set w3svc/xxx/securebindings ":443:somewhere.com"
But I am drawing a big blank when it comes to assigning an existing ssl certificate.
Thanks
Paul