Bluehost.com Web Hosting $6.95

Apache 2 and SSL certificates

This is a discussion on Apache 2 and SSL certificates within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi! I have setup Apache 2.0.46 with SSL support. I have also created several virtual hosts for SSL ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-03-2003
Sasa
 
Posts: n/a
Default Apache 2 and SSL certificates

Hi!

I have setup Apache 2.0.46 with SSL support. I have also created
several virtual hosts for SSL and NONSSL access. For each host I have
made a self signed certificate which I have also defined in the
ssl.conf file. The problem is that if I go to any of these sites I
always get the same certificate instead for each site it's own
certificate. I have then found out that for the first vhost in the
conf file his certificate is always presented no matter on what site I
go.
How can I setup to each site using it's own certificate ?

Please help!

Sasa
  #2 (permalink)  
Old 08-03-2003
Bengt-Arne Fjellner
 
Posts: n/a
Default Re: Apache 2 and SSL certificates

Short answer: you cant.
You can use ipbased hosts but only then.

"Sasa" <sasa@stupar.homelinux.net> skrev i meddelandet
news:764fb607.0308030345.7755dd9b@posting.google.c om...
> Hi!
>
> I have setup Apache 2.0.46 with SSL support. I have also created
> several virtual hosts for SSL and NONSSL access. For each host I have
> made a self signed certificate which I have also defined in the
> ssl.conf file. The problem is that if I go to any of these sites I
> always get the same certificate instead for each site it's own
> certificate. I have then found out that for the first vhost in the
> conf file his certificate is always presented no matter on what site I
> go.
> How can I setup to each site using it's own certificate ?
>
> Please help!
>
> Sasa



  #3 (permalink)  
Old 08-03-2003
Sasa Stupar
 
Posts: n/a
Default Re: Apache 2 and SSL certificates

But I am using ipbased vhost.

On 8/3/2003 2:16 PM, Bengt-Arne Fjellner a écrit:
> Short answer: you cant.
> You can use ipbased hosts but only then.
>
> "Sasa" <sasa@stupar.homelinux.net> skrev i meddelandet
> news:764fb607.0308030345.7755dd9b@posting.google.c om...
>> Hi!
>>
>> I have setup Apache 2.0.46 with SSL support. I have also created
>> several virtual hosts for SSL and NONSSL access. For each host I have
>> made a self signed certificate which I have also defined in the
>> ssl.conf file. The problem is that if I go to any of these sites I
>> always get the same certificate instead for each site it's own
>> certificate. I have then found out that for the first vhost in the
>> conf file his certificate is always presented no matter on what site I
>> go.
>> How can I setup to each site using it's own certificate ?
>>
>> Please help!
>>
>> Sasa

>
>


  #4 (permalink)  
Old 08-04-2003
Sasa Stupar
 
Posts: n/a
Default Re: Apache 2 and SSL certificates

Yep.

On 8/4/2003 12:57 PM, ANdre H a écrit:
> Hi,
>
> Are you sure that you configured a (defferent )SSCertificateFile for each of
> your <VirtualHost ..> in ssl.conf ?
>
> Regards
> "Sasa" <sasa@stupar.homelinux.net> wrote in message
> news:764fb607.0308030345.7755dd9b@posting.google.c om...
>> Hi!
>>
>> I have setup Apache 2.0.46 with SSL support. I have also created
>> several virtual hosts for SSL and NONSSL access. For each host I have
>> made a self signed certificate which I have also defined in the
>> ssl.conf file. The problem is that if I go to any of these sites I
>> always get the same certificate instead for each site it's own
>> certificate. I have then found out that for the first vhost in the
>> conf file his certificate is always presented no matter on what site I
>> go.
>> How can I setup to each site using it's own certificate ?
>>
>> Please help!
>>
>> Sasa

>
>


  #5 (permalink)  
Old 08-05-2003
Ben Groot
 
Posts: n/a
Default Re: Apache 2 and SSL certificates

Do you have default servers for the main server? My conf looks something like this:

<VirtualHost _default_:80>
SSLEngine off
...
</VirtualHost>

<VirtualHost _default_:443>
SSLEngine on
SSLCertificateFile /usr/apache/ssl.crt/cert1.crt
SSLCertificateKeyFile /usr/apache/ssl.key/cert1.key

DocumentRoot /usr/apache/pub/
ServerName ...
</VirtualHost>

<VirtualHost xxx.xxx.xxx.xxx>
SSLEngine on
SSLCertificateFile /usr/apache/ssl.crt/cert2.crt
SSLCertificateKeyFile /usr/apache/ssl.key/cert2.key

ServerName server2.my.domain
ServerAlias server2

DocumentRoot ...
...
</VirtualHost>

<VirtualHost xxx.xxx.xxx.xxx>
SSLEngine on
SSLCertificateFile /usr/apache/ssl.crt/cert3.crt
SSLCertificateKeyFile /usr/apache/ssl.key/cert3.key

ServerName server3.my.domain
ServerAlias server3

DocumentRoot ...
...
</VirtualHost>
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0