rofll
rofll

Reputation: 11

linux wget not certified?

I'm trying to do a simple wget on my server that's brand new and I'm getting this error. I've never encountered anything like this - at all...

[root@ip-219-140 ~]# wget https://dl.dropboxusercontent.com/u/60455970/litecoin-0.6.3c-linux.tar.gz
--10:11:52--  https://dl.dropboxusercontent.com/u/60455970/litecoin-0.6.3c-linux.tar.gz
Resolving dl.dropboxusercontent.com... 54.243.119.191
Connecting to dl.dropboxusercontent.com|54.243.119.191|:443... connected.
ERROR: cannot verify dl.dropboxusercontent.com's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':
  Unable to locally verify the issuer's authority.
To connect to dl.dropboxusercontent.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

Upvotes: 0

Views: 6180

Answers (3)

Saleh Darwish
Saleh Darwish

Reputation: 1

Solution 1:

 sudo apt install --reinstall ca-certificates

 sudo update-ca-certificates -f

Solution 2: Create ~/.wgetrc file and add to it:

ca_certificate=/etc/ssl/certs/ca-certificates.crt

Upvotes: 0

Grzegorz Luczywo
Grzegorz Luczywo

Reputation: 10492

Solve the underlying problem instead of "--no-check-certificate".

On some Ubuntu versions (14.04 server for sure) wget and openssl are compiled with default CA store in /usr/lib/ssl/certs instead of /etc/ssl/certs where actually certs are present.

Fixed by symlink:

sudo mkdir -p /usr/lib/ssl
sudo ln -s /etc/ssl/certs /usr/lib/ssl/certs

Upvotes: 1

Nir Alfasi
Nir Alfasi

Reputation: 53535

Follow the instructions:

To connect to dl.dropboxusercontent.com insecurely, use `--no-check-certificate'.

Run:

 wget --no-check-certificate https://dl.dropboxusercontent.com/u/60455970/litecoin-0.6.3c-linux.tar.gz

it worked for me just fine!

Upvotes: 2

Related Questions