Curl SSL verify error

But,I've told curl where is the ca-cert file.

curl -vsI https://...... Just works.Even if not specified --cacert

curl -kvsI https://...... Not works. Whether specified --cacert or not, it always says * SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.

1 Like

Maybe order matters...
Change:
sudo curl -kvslI https://ssl.othing.xyz --cacert /etc/ssl/certs/ca-certificates.crt
to
sudo curl --cacert /etc/ssl/certs/ca-certificates.crt -kvslI https://ssl.othing.xyz

Also, my apologies for having forgotten what was posted seven days ago :frowning:

1 Like

If that fails...
Try:

1 Like

Not working. Maybe I need to go to the manjaro forum for help

2 Likes

Snap is ugly. What's more, I can't connect to Snap due to ISP ban, and it has no mirroring, so I can't try this method. Thanks also for your help!

2 Likes

My ubuntu 20.04 virtual machine cannot reproduce the problem. So it seems to be a problem with manjaro or curl. I opened a new thread Curl SSL verify error - Software & Applications - Manjaro Linux Forum

3 Likes

Do not use the -k option. With -k , no check is done and no cert store is loaded. If you want to verify a cert you can’t use -k .

3 Likes

So, was the problem that curl 7.80 now always shows this message when using -k?

***  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.**

Do your original commands work without -k?

2 Likes

There's no error without -k.
If add -k ,even digicert.com will show the same error

  • issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 Extended Validation Server CA
  • SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
2 Likes

Oh, ok. Thanks for clarifying. A poorly worded message to confirm -k which means to skip the verify result. And, they now don't load the CA file for -k so of course no local certs would be found. Huh.

1 Like

A very strange behavior - but who are we to dampen progress/change!

1 Like

That is curious as SNAP works on my ISP fine. Not that I used it much outside of installing some tools.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.