Thursday, January 5, 2012

Multiple SSL sites under one IIS

IIS7's GUI doesn't really let you bind multiple sites to the https protocol, but there is a way to do this.

First thing to do is bind a binding to a site in IIS that uses the certificate that you want to use. (Presumably this is your wildcard cert). This site will have the *:443 binding. This is necessary because this cert becomes the default cert used in the following instructions.

Open the command prompt and type this line:

cscript.exe C:\inetpub\AdminScripts\adsutil.vbs set /w3svc/[SiteIdentifier]/SecureBindings ":443:[HostHeader]"

[SiteIdentifier] is the ID detailed in IIS Manager (right click on a site name in IIS, Manage Website > Advanced Settings...)
[HostHeader] is your URL you want bound.

Also, it is important to note that you need to have IIS6 config compatibility component installed.

Here's how to do that:

To install the IIS 6.0 Management Compatibility Components by using the Windows Server 2008 Server Manager

  • Click Start, click Administrative Tools and then Server Manager.
  • In the left navigation pane, expand Roles, and then right-click Web Server (IIS) and select Add Role Services.
  • On the Select Role Services pane, scroll down to IIS 6 Management Compatibility.
  • Select the check boxes for IIS 6 Metabase Compatibility and IIS 6 Management Console.
  • Click Next from the Select Role Services pane, and then click Install at the Confirm Installations Selections pane.
  • Click Close to leave the Add Role Services wizard.

1 comment:

  1. Hi,

    One thing is not clear.
    Why is Metabase Compatibility required?

    ReplyDelete