Get 60 error with curl -L https://get.rvm.io | bas

2019-07-31 04:41发布

问题:

I can't seem to figure out how to run

 curl -L https://get.rvm.io | bash -s

And not get an error. I have a mac osx mavericks and the error I get is this:

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) SSL certificate problem: self signed certificate in certificate chain 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). If the default bundle file isn't adequate, 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.

I tried using --insecure and I tried --cacert to the .pem file here:

http://curl.haxx.se/docs/caextract.html

I cant seem to install certutil. I just can't figure it out.

Any help would be greatly appreciated!

回答1:

you need to update your system and your system SSL certificates, use this answer for more details on updating certificates => https://stackoverflow.com/a/19151697/497756



标签: bash curl ssl rvm