/etc/pki/tls/certs/ca-bundle.crt not found

I am using curl -L | bash -s stable to install RVM. I get an error saying

CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none

I searched a bit on the Internet and found that changing the permissions of /etc/pki/tls/certs/ca-bundle.crt should get the job done. But whole /etc/pki directory is missing from my system. How can I fix it?

2 Answers

On ubuntu/debian, this file is in /etc/ssl/certs/ca-certificates.crt. You could symlink it. The /etc/pki/ path is used on Redhat.

4

Simply create a ~/.curlrc file.

Then add the following lines to the file:

capath=/etc/ssl/certs/
cacert=/etc/ssl/certs/ca-certificates.crt

Feel free to adjust those paths as necessary, as different Linux distributions may use different paths.

(Worked for Ubuntu 14.04).

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like