Forum Moderators: phranque

Message Too Old, No Replies

More than 1 SSL certificate on a server

         

abtools

10:05 am on Feb 2, 2004 (gmt 0)

10+ Year Member



Hello together!

I've got the following problem:
At our server there should be 2 different domains with SSL, of course, with 2 different IP addresses.
In the file "ssl_vhost.conf" (we are using Confixx 2.0 Prof.) I have added 2 virtual hosts for that reasons, each with a different self-made ssl certificate.

The "ssl_vhost.conf"-file looks as following:
----
NameVirtualHost *IP1*:443
NameVirtualHost *IP2*:443
<VirtualHost *IP1*:443>
[...]
SSLEngine on
SSLCertificateFile /etc/apache/ssl.crt/certificate1.crt
SSLCertificateKeyFile /etc/apache/ssl.key/certificate1.key
</VirtualHost>
<VirtualHost *IP2*:443>
[...]
SSLEngine on
SSLCertificateFile /etc/apache/ssl.crt/certificate2.crt
SSLCertificateKeyFile /etc/apache/ssl.key/certificate2.key
</VirtualHost>
----

Although as it can be seen above both IPs have different SSL certificates the browser always gets the "certificate1" that causes that the 1. page opens without error, but the 2. one displays an error message that the domain name is invalid.
What have I done wrong in the configuration or what could the problem be so that the server send always the first certificate to the browser?

Thanks in advance for your help
Andreas

jdMorgan

3:09 pm on Feb 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Andreas,

Welcome to WebmasterWorld [webmasterworld.com]!

I'm fairly sure someone here knows the answer to your question, but I'm very sure it's not me! ;)

I just wanted to say hello and welcome, and give your thread a bump up on the active list.

Jim

abtools

3:42 pm on Feb 3, 2004 (gmt 0)

10+ Year Member



Hello Jim!

<I'm fairly sure someone here knows the answer to <your question

I hope so...

<I just wanted to say hello and welcome, and give <your thread a bump up on the active list.

Thank you
Andreas