Current time: 07-02-2024, 03:00 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Solved]SSL Certificate for Vitual Hosts
Author Message
Macsloverd Offline
Junior Member
*

Posts: 17
Joined: Sep 2009
Reputation: 0
Post: #1
[Solved]SSL Certificate for Vitual Hosts
ISPCP 1.0.5 is running and with a SSL enabled for the Control Panel (admin), to be specific:
Code:
Server domain: http://abc.com
control panel access: https://admin.abc.com (with a purchased certificate)

Today, when I try to enable a SSL for a virtual host i.e. 123.com (https://123.com), it shows the certificate of the admin.abc.com instead of its own certificate.

to enable the SSL for control panel, I modified 00_master.conf based on the howtos in documentation area; and I modified the ispcp.conf for the virtual host to enable the SSL.

Apache2 restart with no warnings and I double checked the location for certificate file.

I am quite confusing about the reason that the virtual host is not using the right certificate.

Is there anyone who can help me with this?

Thanks in advance.

ANSWERS to this problem
I have got answers from apache website: It is not possible to set SSL for more than one Name-based virtual host.

The reason is that SSL encapsulation happens before HTTP protocol so that apache can not tell which virtual host the client want to connect, so that apache provides the first that it finds, in this case, admin control panel as it is defined in the 00_master.conf (before the ispcp.conf loaded).

It is, however, possible to set IP-based virtual host together with multiple SSL connection.

People who are interesting in detailed information can find here with question: "Why can't I use SSL with name-based/non-IP-based virtual hosts?" and "Why is it not possible to use Name-Based Virtual Hosting to identify different SSL virtual hosts?"
(This post was last modified: 04-18-2010 05:28 PM by Macsloverd.)
04-17-2010 07:44 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[Solved]SSL Certificate for Vitual Hosts - Macsloverd - 04-17-2010 07:44 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)