On 18-Jan-2002 Owen Boyle wrote:
>> I want to have 2 different certificates used in 2 different virtual
>> hosts on my server.

<snip>

>> Is there a way to specify multiple SSLCertificateFile directives for
>> different vhosts, or will the first one specified be used unconditionally
>> for all other vhosts?
> 
> Hate to have to tell you but it can't be done. You cannot have more than
> one SSL VH on any given IP address/Port. To have more than one SSL VH on
> the same machine, they have to use different IP addresses or different
> ports - name-based VHs don't work.

I don't think that's what the original person was asking: he was asking
if he could use two different certificates on two different virtual hosts,
which might not, actually, MUST not be on the same IP. The answer is yes, it is
possible... I am doing it here. But you have to make sure you are using the
correct key file that corresponds to the right certificate, e.g.

<VirtualHost 10.10.10.2:443>
    SSLCertificateKeyFile /some/key/file
    SSLCertificateFile /some/cert/file
    .
    .
</VirtualHost>

<VirtualHost 10.10.10.3:443>
    SSLCertificateKeyFile /some/other/key/file
    SSLCertificateFile /some/other/cert/file
    .
    .
    .
</VirtualHost>

- Julian

-- 
Julian C. Dunn, B.A.Sc.   <[EMAIL PROTECTED]>
Senior Software Developer, VerticalScope Inc.
111 Peter St., Suite 700, Toronto, ON
Tel: (416) 341-8950 x236  Fax: (416) 341-8959

istream >> ostream >> "We all scream for ice cream";
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to