Programmatically assigning an existing ssl cert to a website in iis6 via powershell or vbscript

Posted by dagda1 on Server Fault See other posts from Server Fault or by dagda1
Published on 2011-01-03T15:38:53Z Indexed on 2011/01/05 7:55 UTC
Read the original article Hit count: 302

Filed under:
|
|

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

© Server Fault or respective owner

Related posts about powershell

Related posts about vbscript