Score:0

Curl command doesn't works without sudo

xk flag

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

Steffen Ullrich avatar
se flag
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
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.