找不到/etc/pki/tls/certs/ca-bundle.crt

我正在使用curl -L https://get.rvm.io | bash -s stable curl -L https://get.rvm.io | bash -s stable可以安装RVM。 我说错了

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

我在互联网上搜索了一下,发现更改/etc/pki/tls/certs/ca-bundle.crt的权限应该可以完成工作。 但是我的系统中缺少整个/etc/pki目录。 我该如何解决?

在ubuntu / debian上,此文件位于/etc/ssl/certs/ca-certificates.crt 。 你可以对它进行符号链接。 /etc/pki/ path用于Redhat。

只需创建一个~/.curlrc文件。

然后将以下行添加到文件中:

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

随意调整这些路径,因为不同的Linux发行版可能使用不同的路径。

(适用于Ubuntu 14.04)。