I'm trying to use Wget for Windows to download a document from a specific URL.
When I do this, for many (but not all) websites, I get a certificate error. For example:
C:\temp> wget https://stackoverflow.com/
Produces:
--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'.
As the error message suggests, I can work around the problem by including the --no-check-certificate
parameter with my command. However, I'd like to avoid that because it is (1) insecure, and (2) a hassle.
As you might expect, I can connect to https://stackoverflow.com/ (and other affected URLs) with no problems using any of the web browsers I have on this PC (Firefox, Chrome, Edge, IE, Vivaldi).
I'm not running Cygwin (so answers to this similar question don't apply).
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?