Wget error: ERROR: The certificate of is not trusted.
Wget error: ERROR: The certificate of is not trusted / Skipping ssl/tls certificate checks with wgetSome webmasters use self signed or own CA signed certificates for trivial websites. Such example is xcache website:
Code:
# wget https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
--2015-01-14 05:18:48-- https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
Resolving xcache.lighttpd.net (xcache.lighttpd.net)... 188.40.103.19, 2a01:4f8:100:8082::2
Connecting to xcache.lighttpd.net (xcache.lighttpd.net)|188.40.103.19|:443... connected.
ERROR: The certificate of `xcache.lighttpd.net' is not trusted.
ERROR: The certificate of `xcache.lighttpd.net' hasn't got a known issuer.
This can be solved by checking wget help:
Code:
# wget --help | grep certificate
--no-check-certificate don't validate the server's certificate.
--certificate=FILE client certificate file.
--certificate-type=TYPE client certificate type, PEM or DER.
--ca-certificate=FILE file with the bundle of CA's.
So to finally download a file from a website using a non-trusted certificate with wget:Code:
# wget --no-check-certificate https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz