title: wget: where does it look for certificates?
body: <p>I have a HTTPS-site that needs an intermediate-certificate to verify the servers SSL-certificate.</p>
  
  <p>If I put the intermediate-cert into /etc/ssl/certs (and make the hash-link) then</p>
  
  <pre><code>openssl s_client -connect IP:PORT
  </code></pre>
  
  <p>will work. Otherwise I get a verification error.</p>
  
  <p>Where does wget look for certificates? I only can make it work if I explicitly set --ca-directory in wget.</p>
  
  <p>So it seems openssl looks into /etc/ssl/certs and wget does not.</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>If I run wget with -d then I see without --ca-directory it loads 
  about 150 certificates. With the option it is over 300. So it must be another path then openssl-default I think.</p>
  
  <p>Wget 1.19.4 on linux-gnu on Debian 10</p>