title: Can't verify CA certificate unless CApath or CAfile used
body: <p>Im having trouble with having OpenSSL connect to a server because of trust issues. I placed the CA  certificate on <code>/etc/ssl/certs/</code> and have run <code>sudo c_rehash</code> and can see that the correct file has been made. I can see that CA certificate is in the ca-certificates.crt. However if I run:</p>
  
  <pre><code>openssl s_client -connect servername.domain.com:636
  </code></pre>
  
  <p>The command fails with Verify return code: 21 (unable to verify the first certificate)</p>
  
  <p>If I do:</p>
  
  <pre><code>openssl s_client -connect servername.domain.com:636 -CApath /etc/ssl/certs/
  </code></pre>
  
  <p>I get Verify return code: 0 (ok)</p>
  
  <p>What can I do so I dont have to specify the CApath?</p>
  
  <p>I'm using Ubuntu 13.04.</p>