Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple SSL certificates 1

Status
Not open for further replies.

wuxapian

Programmer
Jun 13, 2001
52
GB
Hi,

Has anyone got any examples of an apache config where there are multiple sites with different SSL certificates.

I'm having a bit of trouble when trying to use more than one certificate.

TIA
Wux.
 
Are you trying to use them on the same IP address? SSL won't work that way.

The SSL handshake happens before any HTTP headers are sent -- there is no way for a web server to know to which certificate to connect you to by headers. So Apache will connect you to the SSL cert which is configured first in the config file. ______________________________________________________________________
TANSTAAFL!
 
Hi,

I am using virtual hosts and names, not IP addresses
ie.
Does this mean that I cannot have multiple SSL sites without having multiple IP addresses pointing at the server?

Wux.
 
That is correct.

Virtual hosts allow multiple sites to be hosted on a single shared IP address. Apache differentiates between multiple sites on one IP address by matching the hostname given in the &quot;ServerName&quot; or &quot;ServerAlias&quot; configuration directives in the &quot;<VirtualHost...>...</VirtualHost>&quot; tags to the hostname given in the &quot;Host:&quot; HTTP header.

Since the HTTPS SSL handshake takes place before any headers are sent, there is no way for Apache to know which SSL certificate to use. It generally defaults to using the first-defined cert in httpd.conf.

______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top