Configure SSL port of IIS 6 website programmatically?

I am trying to configure a website SSL port with a certificate for a website in IIS 6.0 programmatically.

IIS 7.0 provides an API, ServerManager, to do this, but I'm not sure if there is anything like this for IIS 6.0 or command line utilities.

Thanks in advance!

+5
source share
1 answer

If you mean just programming the NUMBER port, you can use the metabase command line tool (by default in C: \ Inetpub \ AdminScripts):

cscript adsutil.vbs set w3svc/1/securebindings ":nnn:"

where nnn is the port number (for example, ": 443:"). (If several sites are installed on the server, you will need to replace w3svc / x / securebindings, where x is the identifier of the website.)

CERTIFICATE , , , script IIS 6.0 Resource Kit, (IISCertDeploy.vbs), .

+7

All Articles