我试图Debian服务器上更新RVM:将证书cacert.pem放在哪里?
rvm get stable
,但我得到了如下因素的错误:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here : http://curl.haxx.se/docs/sslcerts.html
我大约5个月前安装了这个服务器,一切都工作正常,但似乎东西https://rvm.io
证书上改变了所以我设法下载新的束证书(cacert.pem在我的用户目录):
wget http://curl.haxx.se/ca/cacert.pem
,并尝试不同的命令为official doc说,但证书文件选项可以使用:
\curl --cacert ./cacert.pem -L https://get.rvm.io | bash -s stable # update to stable
移动的东西稍微向前。不幸的是,后来rvm在安装过程中再次运行,我再次遇到同样的错误。
所以我想知道在哪里把我的cacert.pem文件替换cURL使用的一个?
我试图以及其他工艺: 创建包含CACERT =〜/ cacert.pem 一个.curlrc文件,但我得到一个错误: 凭证档案错误:cacert.pem CApath:在/ etc/SSL /证书
所以我试图将我的cacert.pem复制到/usr/share/ca-certificates/cacert.org 中,并在/ etc/ssl/certs中创建了一个指向/ usr/share/ca-certificates/cacert的sym链接.org/cacert.pem
但是,当我
rvm get stable
我得到了错误:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here : http://curl.haxx.se/docs/sslcerts.html
我也试过这个下面,没有不同的结果,但:
sudo update-ca-certificates -f
所以我想知道在哪里把我的cacert.pem文件?
另请参见:'curl -k -L https://get.rvm.io | bash -s stable' –
当然,但使用证书时的目标是使事情安全。如果您使用'-k'参数。您将允许不安全的SSL连接。从手册页摘录:** - k,--insecure(SSL)此选项明确允许curl执行“不安全”SSL连接和传输。** – Douglas
是的,但是如果您关心的只是完成它(适用于大多数人,我认为),-k是一个选项。 –