Note that there are some explanatory texts on larger screens.

plurals
  1. POApache 2, SSL, and Client Certificates
    primarykey
    data
    text
    <p>I have set up a number of Virtual Hosts all using SSL. Everything worked fine. Then I needed to add SSL Client Authentication to one of them (let's call it the SVN host). After enabling client certificates for the SVN host, the host stopped working, instead the default virtual host would be used instead (which means that an un-matching server certificate would be provided, so that neither access to the secure host, nor client authentication would work).</p> <p>Here's the virtual host configuration I'm using:</p> <pre><code>&lt;VirtualHost *:443&gt; ServerName svn.anydomain.com SSLEngine on SSLOptions +StrictRequire SSLProtocol -all +TLSv1 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:!SSLv3:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile /etc/certs/svn.crt SSLCertificateKeyFile /etc/certs/svn.key SSLCertificateChainFile /etc/certs/starcom/sub.class1.server.ca.pem SSLCACertificateFile /etc/certs/cacert.crt SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown SSLVerifyClient require SSLVerifyDepth 2 SSLUserName SSL_CLIENT_S_DN_CN &lt;Location /path0&gt; DAV svn SSLRequireSSL SVNPath /var/svn/path0 #Require valid-user &lt;/Location&gt; &lt;Location /path1&gt; DAV svn SSLRequireSSL SVNPath /var/svn/path1 #Require valid-user &lt;/Location&gt; &lt;/VirtualHost&gt; </code></pre> <p>Also, I seem to have this problem on Mac OS X only. I am able to access the host from Windows 8 with no sweat. Basically, on my Mac I can get it to work only with these options in curl (sometimes, not consistently)</p> <pre><code>curl -v -v -v -1 -k --cacert Documents/Certs/CACert.pem --cert Documents/Certs/ClientCert.pem https://svn.anydomain.com/path1 </code></pre> <p>This instead fails (note the -3 instead of -1 for SSLv3 instead of TLSv1)</p> <pre><code>curl -v -v -v -3 -k --cacert Documents/Certs/CACert.pem --cert Documents/Certs/ClientCert.pem https://svn.anydomain.com/path1 </code></pre> <p>and returns the certificate of the default virtual host. This behaviour (wrong virtual host) is what I get for any access to that domain on my Mac (Safari, Eclipse+Subversive, Cornerstone, etc).</p> <p>Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload