LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-06-2006, 12:46 PM   #1
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217

Rep: Reputation: 30
Question 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...
 
Old 02-06-2006, 03:16 PM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
As far as i know you can only use 1 certificate per ip address. So probably only your first vhost works.
 
Old 02-07-2006, 03:48 AM   #3
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
yes, true... only one! because your domainname is inside the encrypted package and so you cannot reach different vhosts...
 
Old 02-07-2006, 12:09 PM   #4
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217

Original Poster
Rep: Reputation: 30
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.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache, SSL, autentication and third party client certificates bezoomny Linux - Security 1 10-13-2005 08:28 AM
SSL certificates the-chains Linux - Software 0 11-15-2004 08:12 PM
ssl certificates champ Linux - Security 2 04-05-2003 10:47 AM
ssl certificates Syncrm Linux - General 7 02-26-2003 11:01 AM
Multiple SSL Certificates Per IP Address dkochan Linux - General 1 03-05-2002 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration