Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


LinkBack Search this Thread
Old 02-06-2006, 11:46 AM   #1
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 209

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...

NameVirtualHosts A.B.C.D:80
NameVirtualHosts A.B.C.D:443
I put this in httpd.conf and I set it like this:

<VirtualHost A.B.C.D>
    DocumentRoot /var/htdocs

<VirtualHost A.B.C.D:443>
    DocumentRoot /var/secure
    [and here I put other locations and entries for key and cert and etc]
Now the problem is when I'm adding another secure VHost here, different domain ( 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, 02:16 PM   #2
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, 02:48 AM   #3
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, 11:09 AM   #4
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 209

Original Poster
Rep: Reputation: 30
I have created 2 certificates for 2 domains eg. and Now all of those domains are hosted in the server 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 CA to and


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 07:28 AM
SSL certificates the-chains Linux - Software 0 11-15-2004 07:12 PM
ssl certificates champ Linux - Security 2 04-05-2003 09:47 AM
ssl certificates Syncrm Linux - General 7 02-26-2003 10:01 AM
Multiple SSL Certificates Per IP Address dkochan Linux - General 1 03-05-2002 01:06 PM

All times are GMT -5. The time now is 02:30 AM.

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