When I try to run the
wget command on http urls I get this error message:
ERROR: The certificate of `url' is not trusted. ERROR: The certificate of `url' hasn't got a known issuer.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
If you are using Debian or Ubuntu operating system please install the package
$ sudo apt-get install ca-certificates
If you don't care about checking the validity the certificate use
$ wget --no-check-certificate https://download/url
NOTE: Second option not recommended because of possibility to man-in-the-middle attack.
Per TFM for wget use the
"Don't check the server certificate against the available certificate authorities. Also don't require the URL host name to match the common name presented by the certificate."