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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 > > |
|
|||
|
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 > > |
|
|||
|
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> |