Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7 SSL for multiple sites with a single IP

I have a single IIS 7 server with a single IP address. Site 1 has an SSL cert for www and Site 2 has a wildcard SSL cert for various subdomains. Both sites use host headers to direct traffic off the single IP address. However, when I try to access a subdomain on Site 2 I see a browser warning telling me that the SSL cert is wrong and shows me the information for Site 1. Help!

like image 646
Unknown Coder Avatar asked Feb 15 '11 16:02

Unknown Coder


People also ask

How do I host multiple websites on one IP IIS?

Hosting Multiple Website on IIS using Host HeadersRight-click TestSite and select Edit Bindings. Select the binding you need and click Edit. Specify the unique host name the users will address to, like TestSite, in the Host Name field. Now you can start the second website as well.

Can I use the same SSL certificate on multiple sites?

The simple answer is a resounding Yes! You absolutely can use one SSL certificate for multiple domains — or one SSL certificate for multiple subdomains in addition to domains.

Can IIS host multiple websites on port 443?

Through the IIS Manager interface, IIS only allows you to bind one site on each IP address to port 443 using an SSL certificate. If you try to bind a second site on the IP address to the same certificate, IIS 7 will give you an error when starting the site up stating that there is a port conflict.


1 Answers

Until SNI is fully supported, you can only have one certificate per IP address. If you can get a certificate that covers both sites (a wildcard or a UC certificate, for example), you can set up SSL Host Headers to allow both sites to be secured.

like image 74
Robert Avatar answered Oct 01 '22 05:10

Robert