views:

273

answers:

1

Is there a tool or programmatic way to install an SSL cert to the default website in iis 6 and 7? Ideally I am looking for something that can be done via unmanaged code or .net managed code.

+1  A: 

You can look at

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/bf6b6472-f58e-4271-9297-284357f69023.mspx?mfr=true

Something like: set ssl = CreateObject("IIS.CertObj")

ssl.InstanceName = "0.0.0.0:443"

ssl.Import pfxfile, pfxfilepassword, true, true

Claus Thomsen