Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've recently had the need to run two sites on the same machine with https.
My first site a.com I registered the certificate, no probs.
The second site, b.com, I registered, then when I ran it it spewed an error hostname mismatch, as expected. I wasn't aware of this limitation at the time but do now :-)
I then asked a colleague who said if I run the second site on a non standard port, say 8443, then the second security certificate will validate.
Can anyone explain how that works to me? Also, is it a good idea?
Your colleague is partially right. Until now it was not possible to have to 2 SSL servers running on the same IP and listening on the same port.
This is now possible using the new SNI extension. Read this for details and for an explanation why it was not possible before.
Thanks Bathory, I'm looking into SNI now, looks good. I'm using nginx though so I'm asking about on their IRC to see if there is an equivalent in nginx.
Out of interest, how does the certificate work if I run the second site on another port?
Thanks again
Quote:
Originally Posted by bathory
Hi,
Your colleague is partially right. Until now it was not possible to have to 2 SSL servers running on the same IP and listening on the same port.
This is now possible using the new SNI extension. Read this for details and for an explanation why it was not possible before.
Out of interest, how does the certificate work if I run the second site on another port?
The answer is a bit hidden in the text bathory linked to
Code:
The ordinary behavior, then, is that the SSL connection is set up using the configuration in the default virtual host for the address where the connection was received.
As the webserver uses its default vhost it will always use the same certificate despite the configured certificate for the vhost.
If you use a different port you have a different default configuration so the right certificate is used.
Art mentions that this will not work on any browser running on an XP box as it's not in the XP network stack. Does this mean that whatever web server I choose, apache or nginx, when I'm using SNI any browser on an XP box will not handle it properly?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.