Linux – In node.js, SSL with multiple domain names and one IP address

In node.js, SSL with multiple domain names and one IP address… here is a solution to the problem.

In node.js, SSL with multiple domain names and one IP address

Accustomed to Apache in Linux, where each domain name that uses SSL requires its own IP address.

Is this still true if using node.js and not Apache at all?

Solution

The limitations in node.js are the same as in Apache — they are independent of the specific server software you use, they are inherent in http and TLS/SSL protocols.

That being said, there are two ways to run SSL for multiple domains from a single IP address. I don’t know the status of node.js support for any of them, but it shouldn’t matter for the first alternative.

First, you

can get an SSL certificate that covers all the domains you want to use – either wildcards if they’re all subdomains of the same domain, or use Subject Certificate for Alternative Names. (SAN) if they are not. Note that some older web browsers do not support SANs, especially on some smartphones.

Second, you can use Server Name Indication (SNI) Configure multiple SSL certificates because it extends the SSL protocol so that the hostname is available to the server until the key exchange is complete. Browsers don’t support SNI as much as SAN, especially since it doesn’t work with any version of Internet Explorer on Windows XP.

Related Problems and Solutions