If the browser and web server support the Name Name extension, the web server can use it to select the correct certificate. Otherwise, you will have to use two separate IP addresses or a wildcard certificate (as mentioned in other answers, HTTP headers, including the host header, which tells the web server which site is being requested, are encapsulated in an SSL / TLS connection).
source share