Joe Auty wrote: > I want to have 2 different certificates used in 2 different virtual > hosts on my server. > > I have: > > "SSLCertificateFile /etc/httpd/conf/ssl.crt/cert1.crt" specified > for one virtualhost, and: > > "SSLCertificateFile /etc/httpd/conf/ssl.crt/cert2.crt" specified for the > other. > > The problem is that other/second vhost is using cert1.crt for some reason. > When I do a "openssl x509 -noout -text -in cert2.crt" I get the correct > information for that certificate which is, of course, different than > cert1. > > 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. See http://www.modssl.org/docs/2.8/ssl_faq.html#ToC47 and http://marc.theaimsgroup.com/?l=apache-modssl&m=98559369910170&w=2 for why... Rgds, Owen Boyle. ______________________________________________________________________ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]