1

I have a site with a SSL certificate. Now I need to add another site, also using HTTPS.

It seems it is possible to do by creating the binding for the new site using another port for the HTTP and HTTPS traffic. This I'd like to avoid, as adding exceptions in the firewalls is a lengthy process due to security policies.

The way I thought was possible to get around adding new ports was to add the site as a subdomain, and then change the SSL certificate to have an additional SAN name that matches the new subdomain.

I tried testing this on my local machine, but after adding the 443 port with the certificate on both sites, editing the host file to contain the subdomain, and then adding the subdomain as a hostname to the new iis website. Only one of the sites can be started, the other one complains that another site may be using the same port.

Questions:

  • I feel it should be possible to use the same certificate on a domain and a subdomain at the same time without jumping through hoops?
  • If the above is not possible, should I then add two new ports one for http and one for https, and then use those ports for the new site. The certificate should then be able to work for the new site correctly? - right?

EDIT:

Do I need another IP address for the new subdomain?

1

On IIS7.5, two SSL-protected websites require a unique combination of ip address and port. So, you can share IP adress and use different ports, or you can use the same ports but then each site would need a separate ip address. You need to choose.

(btw, there is not problem assigning multiple ip address to a windows server box in order to accomplish this)

1

You can use a wildcard certificate for *.domain.com. There are some security issues with this (since anyone with a copy can create a new site and it will show as valid - for instance if you want company.com and store.company.com and someone gets your private key they can be store1.company.com and it will show as a valid site.

0

On IIS 7.5, you would need unique IP addresses. SNI is not supported before IIS 8.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.