Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Running multiple SSL websites on single server with single ip address

Posted on 2014-10-21
10
Medium Priority
?
190 Views
Last Modified: 2014-10-28
HI

I have a web server running on Centos 6 that is inside a firewall running a single local ip address.

On this server it is running a single site on both 80 and 443.

I now need to run another site on 443.

I understand there is a way using SNI that allows me to run multiple ssl sites using the same ip address and different ssl certs.

Can someone please explain how i configure the server to do this.

thanks
0
Comment
Question by:timb551
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 7

Accepted Solution

by:
Stampel earned 2000 total points
ID: 40394422
There is a way with SNI, yes.
Before we go further .. Do you understand that people using OLD versions of webclients will get the security warning as there was no SSL at all ?

If yes, follow this 2 links for configuration
http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI
http://wiki.gandi.net/en/ssl/multiplecertononehostipport
0
 

Author Comment

by:timb551
ID: 40394554
Thanks.  I have looked through the link and tried to put the config in but when i do so the site that was working starts going to the apache test page rather than the actual site.
0
 
LVL 7

Expert Comment

by:Stampel
ID: 40394619
Does your browser support SNI ?
# Because this virtual host is defined first, it will be used as the default if the hostname is not received
# in the SSL handshake, e.g. if the browser doesn't support
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 7

Expert Comment

by:Stampel
ID: 40394652
Also, what are your exact versions of Apache and OpenSSL  ?
0
 

Author Comment

by:timb551
ID: 40394754
I believe its only old browsers that dont support SNI isnt it.  Im using Firefox ver. 33

Server version: Apache/2.2.15 (Unix)
OpenSSL 1.0.1e-fips 11 Feb 2013

thanks
0
 
LVL 62

Expert Comment

by:gheist
ID: 40395898
Actually SNI support is not so essential.
With wildcard cert you can disable SNI vs HTTP hostname validation and run 100s of sites in same domain.
0
 
LVL 7

Expert Comment

by:Stampel
ID: 40396313
Your openssl & apache versions support SNI.
Can you check with Chrome recent version ?
0
 
LVL 19

Expert Comment

by:alextoft
ID: 40402426
Everything modern supports SNI. SNI just means that the requested FQDN (eg. yoursite.com) is included in the Client Hello which is the first part of the SSL handshake, and the first thing which happens after the client establishes the TCP connection on port 443. This means that the web server knows what site you want *before* the SSL handshake takes place, so can present the certificate which matches that FQDN, hence making SSL VirtualHost entries feasible on a single IP.

You want to make sure you've got, as a minimum:

NameVirtualHost *:443

<VirtualHost *:443>
SSLEngine On
ServerName fqdn.on.certificate.com
SSLCertificateFile /path/to/cert/with-fqdn-matching-ServerName
SSLCertificateKeyFile /path/to/corresponding/private.key
SSLCertificateChainFile /path/to/file-containing-CA-cert-chain-for-SSLCertificateFile
DocumentRoot /somewhere
</VirtualHost>
0
 
LVL 62

Expert Comment

by:gheist
ID: 40402534
You need SSL keys for default host so that https listener starts
NameVirtualHost *:443
SSLEngine On
ServerName fqdn.on.certificate.com
SSLCertificateFile /path/to/cert/with-fqdn-matching-ServerName
SSLCertificateKeyFile /path/to/corresponding/private.key
SSLCertificateChainFile /path/to/file-containing-CA-cert-chain-for-SSLCertificateFile

<VirtualHost *:443>
</VirtualHost>
0
 

Author Closing Comment

by:timb551
ID: 40408429
A few typos which were causing me issues but using the links i got it sorted, thanks
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question