I am using Ubuntu 14.04. When I use curl, I get the following error:
curl: (77) error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath:
From what I gather from googling, the CAfile location it is looking for is not correct for Ubuntu (and it doesn't exist on my computer),
/etc/ssl/certs/ca-certificates.crt is the proper location.
Most of the solutions involved setting the environment variable
CURL_CA_BUNDLE to the proper location, or adding
cacert=/etc/ssl/certs/ca-certificates.crt to the (newly created)
.curlrc file in my home directory. I have tried both, and neither completely solve the issue. curl is finding this location, but it still doesn't work, giving the error:
curl: (60) SSL certificate problem: self signed certificate in certificate chain
I also tried uninstalling and reinstalling curl in Ubuntu, and updating my CA certs with
$ sudo update-ca-certificates --fresh which updated the certs, but still didn't make error 60 go away.
I am not that knowledgeable about CA certs, and doubt I purposely added some self signed certificate in the past. Perhaps by accident, I don't know.
Does anyone know how to fix this? Is there a way to actually start fresh with all my certs? Or does anyone even know how I go about figuring out where this self signed certificate is, and then how to remove it?
PS: I don't want to use the -k (aka --insecure) flag. I want to get this working securely.