0

I am trying to make a curl request to https://www.google.com but gives this error

SSL certificate problem: unable to get local issuer certificate

the same command works with sudo ,how to solve this problem ,I can't have sudo access due to company policies.

curl -v  https://www.google.com

gives

SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Please help how to fix this problem.Thanks

  • 8
    The likely explanation is that the CA needed to verify the trust chain is not readable by the normal user. Check the access privileges for the files and directories involved, i.e. /etc/ssl/certs, /usr/share/ca-certificates/ etc. Note that this is not normal behavior but probably because something has messed up the privileges – Steffen Ullrich Jan 09 '23 at 08:32

0 Answers0