[SOLVED] - wget fails with certificate error for github

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
themetman
Level 1
Level 1
Posts: 7
Joined: Sat Jan 30, 2021 4:26 am

[SOLVED] - wget fails with certificate error for github

Post by themetman »

I am using Linux Mint 20.1 on my PC (fully up to date).
Using this command:

Code: Select all

wget https://github.com/backdrop/backdrop/releases/download/1.19.0/backdrop.zip
I get this error:

Code: Select all

--2021-05-18 07:18:23--  https://github.com/backdrop/backdrop/releases/download/1.19.0/backdrop.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
ERROR: cannot verify github.com's certificate, issued by ‘CN=DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1,O=DigiCert\\, Inc.,C=US’:
  Unable to locally verify the issuer's authority.
To connect to github.com insecurely, use `--no-check-certificate'.
It works fine with the

Code: Select all

--no-check-certificate
option. It works on my Laptop also running Mint 20.1 without an error.
I have tried this:

Code: Select all

sudo apt install --reinstall ca-certificates
and this:

Code: Select all

sudo update-ca-certificates -f
But to no avail.
Any ideas on how to fix this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
themetman
Level 1
Level 1
Posts: 7
Joined: Sat Jan 30, 2021 4:26 am

Re: wget fails with certificate error for github

Post by themetman »

I solved this by using Timeshift.
I decided to use Timeshift to go back and see when the error had crept in.
I went back by days and weeks to 2021-05-02 before the problem cleared.
I then upgraded the system and all is well now, I have no idea what happened to cause the problem, but I also had ssl problems trying to update my Backdrop Websites locally.

All fixed.
vhar
Level 1
Level 1
Posts: 1
Joined: Thu Oct 14, 2021 4:49 am

Re: [SOLVED] - wget fails with certificate error for github

Post by vhar »

Create ~/.wgetrc file and add to it
ca_certificate=/etc/ssl/certs/ca-certificates.crt
Enjoy!
Locked

Return to “Other topics”