wayneeseguin/rvm — Issue #640: rvm-installer fails with SSL certificate error
Author: cvee
Created: 2011-12-13 20:38:10+00:00
State: open

On Linux (CentOS 5.7) attempting to install rvm results in the following:

$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
Downloading RVM from wayneeseguin branch master

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.
Could not download 'https://github.com/wayneeseguin/rvm/tarball/master'.

I've tracked it down to an incorrect URL on line 155:

curl -L https://github.com/${_repo}/rvm/tarball/${_branch}

should be replaced with:

curl -L https://nodeload.github.com/${_repo}/rvm/tarball/${_branch}