LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Apache 2 and SSL Certificates (https://www.linuxquestions.org/questions/linux-security-4/apache-2-and-ssl-certificates-412272/)

aq_mishu 02-06-2006 11:46 AM

Apache 2 and SSL Certificates
 
Here is the situation... My IP is A.B.C.D and it is the servername of my httpd. Now I have 2 virtual hosts...

Code:

NameVirtualHosts A.B.C.D:80
NameVirtualHosts A.B.C.D:443

I put this in httpd.conf and I set it like this:

Code:

#Vhost1
<VirtualHost A.B.C.D>
    ServerAdmin webmaster@mydom.com
    DocumentRoot /var/htdocs
    ServerName www.mydom.com
</VirtualHost>

#Vhost2
<VirtualHost A.B.C.D:443>
    ServerAdmin webmaster@mydom.com
    DocumentRoot /var/secure
    ServerName secure.mydom.com
    [and here I put other locations and entries for key and cert and etc]
</VirtualHost>

Now the problem is when I'm adding another secure VHost here, different domain (otherdom.com) with different key and cert, it gives error and say that the addr typed in the browser is not correct... the viewers get it... What can I do?? I acted here as the CA and then generated 3 certs for 3 sites... Please help...

pk21 02-06-2006 02:16 PM

As far as i know you can only use 1 certificate per ip address. So probably only your first vhost works.

rubella 02-07-2006 02:48 AM

yes, true... only one! because your domainname is inside the encrypted package and so you cannot reach different vhosts...

aq_mishu 02-07-2006 11:09 AM

I have created 2 certificates for 2 domains eg. mishu.com and linux.org. Now all of those domains are hosted in the server 202.202.202.202 as vhost. then??? because if i type, the cert tells me that the address is not correct that i have typed in the browser. because the certificate is issued by banglardamal.org CA to mishu.com and linux.com.....


All times are GMT -5. The time now is 08:11 PM.