Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to configure multiple SSL sites on the same server without a wildcard certificate?

Tags:

iis

ssl

I've set up multiple ssl sites on iis using Servier Bindings as per this article: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8d9f2a8f-cd23-448c-b2c7-f4e87b9e2d2c.mspx?mfr=true

I have two different ssl certs for the two sites installed but when I browse to either site I get the same certificate. Is there any way to configure this without buying a wildcard cert?

like image 468
dr. foot fist headknocker Avatar asked Dec 31 '22 08:12

dr. foot fist headknocker


2 Answers

If both the browser and the web server support the Server Name Indication extension, the web server can use it to select the correct certificate. Otherwise, you would have to use two separate IP addresses or the wildcard certificate (as the other answers already mentioned, the HTTP headers, including the Host header which tells the web server which site is being requested, are encapsulated within the SSL/TLS connection).

like image 172
CesarB Avatar answered Jan 01 '23 20:01

CesarB


Without using different IPs or ports, no. Due to the way that HTTPS connections work the encrypted connection happens before things like host headers can be sent, so there's no way for the server to know which one to connect to.

like image 20
Steven Robbins Avatar answered Jan 01 '23 22:01

Steven Robbins