title: How do I fix certificate errors when running wget on an HTTPS URL on Windows?
body: <p>I'm trying to use <a href="http://gnuwin32.sourceforge.net/packages/wget.htm" rel="nofollow noreferrer">Wget for Windows</a> to download a document from a specific URL.  </p>
  
  <p>When I do this, for many (but not all) websites, I get a certificate error.  For example:</p>
  
  <pre><code>C:\temp&gt; wget https://stackoverflow.com/
  </code></pre>
  
  <p>Produces:</p>
  
  <pre><code>--2017-07-07 15:54:40--  https://stackoverflow.com/
  Resolving stackoverflow.com (stackoverflow.com)... 151.101.193.69, 151.101.129.69, 151.101.1.69, ...
  Connecting to stackoverflow.com (stackoverflow.com)|151.101.193.69|:443... connected.
  ERROR: cannot verify stackoverflow.com's certificate, issued by 'CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
    Unable to locally verify the issuer's authority.
  To connect to stackoverflow.com insecurely, use `--no-check-certificate'.
  </code></pre>
  
  <p>As the error message suggests, I can work around the problem by including the <code>--no-check-certificate</code> parameter with my command.  However, I'd like to avoid that because it is (1) insecure, and (2) a hassle.</p>
  
  <p>As you might expect, I can connect to <a href="https://stackoverflow.com/">https://stackoverflow.com/</a> (and other affected URLs) with no problems using any of the web browsers I have on this PC (Firefox, Chrome, Edge, IE, Vivaldi).</p>
  
  <p>I'm not running Cygwin (so answers to <a href="https://stackoverflow.com/questions/9224298/how-do-i-fix-certificate-errors-when-running-wget-on-an-https-url-in-cygwin">this similar question</a> don't apply).</p>
  
  <p>Is there a way I can configure Wget for Windows to use the same set of root certificates that my OS and/or browsers use, such that it doesn't produce the "Unable to locally verify the issuer's authority" error?</p>