1. 安裝RVM的時候提示錯誤
curl -L https://get.rvm.io | bash -s stable % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184 100 184 0 0 83 0 0:00:02 0:00:02 --:--:-- 0 curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). The default bundle is named curl-ca-bundle.crt; you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. [[email protected] certs]# cat /etc/yum.conf include=http://repos.sina.cn/conf/yumconf.php
在驗證證書的時候出現問題,是本地ssl判別證書太舊,導致報ssl證書錯誤
2. 下載最新的證書文件
cp /etc/pki/tls/certs/ca-bundle.crt{,.bak} curl http://curl.haxx.se/ca/cacert.pem > /etc/pki/tls/certs/ca-bundle.crt