Koozali.org: home of the SME Server

Multiple SSL Certificates for domains hosted in SME 6.0

sukrub

Multiple SSL Certificates for domains hosted in SME 6.0
« on: August 27, 2004, 03:15:10 AM »
I am quite new to SME server, and to linux for that matter, so take it easy.... I would like to host multiple eCommerce sites in my server. I have already setup osCommerce on SME 6.0.1-01. It works fine. Now it is time to get a SSL certificate. I believe the SSL certificate is assign to the primary domain, and not the virtuals. Is there a way to get different SSL certificates for different I-Bays?

mackayr

Multiple SSL Certificates for domains hosted in SME 6.0
« Reply #1 on: May 22, 2006, 05:57:54 AM »
Has anyone ever found a solution to this issue?  I've run into the same issue and would like to issue different ssl certificates for each domain.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Multiple SSL Certificates for domains hosted in SME 6.0
« Reply #2 on: May 22, 2006, 11:26:46 AM »
Quote from: "mackayr"
Has anyone ever found a solution to this issue?  I've run into the same issue and would like to issue different ssl certificates for each domain.

I guess you will have to rewrite all the configuration logic in the httpd.conf templates to accomodate for each virtualdomain to have it's own secure settings and it's own certificate.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Multiple SSL Certificates for domains hosted in SME 6.0
« Reply #3 on: May 22, 2006, 01:34:17 PM »
I'm afraid the answer is here

http://www.modssl.org/docs/2.0/#FAQ-vhosts

which says

#  Why cannot I use SSL with name-based/non-IP-based virtual hosts?

The reason is very technically. Actually it's some sort of a chicken and egg problem: The SSL protocol layer stays below the HTTP protocol layer and encapsulates HTTP. When an SSL connection (HTTPS) is established Apache/mod_ssl has to negotiate the SSL protocol parameters with the client. For this mod_ssl has to consult the configuration of the virtual server (for instance it has to look for the cipher suite, the server certificate, etc.). But in order to dispatch to the correct virtual server Apache has to know the Host HTTP header field. For this the HTTP request header has to be read. This cannot be done before the SSL handshake is finished. But the information is already needed at the SSL handshake phase. Bingo!

Name based host is what SME uses for virtual domain.

Bob
If you think you know whats going on, you obviously have no idea whats going on!