SSL certificate error when installing rvm

Hi, I am trying to install RVM on Mac OsX v 10.4.11.

In terminal I type:

curl -L get.rvm.io | bash -s stable

I get this message:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    387      0 --:--:-- --:--:-- --:--:--     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 verification of the certificate, use
 the -k (or --insecure) option.

I found similar questions about StackOverflow, for example, a Curl certificate error when using RVM to install Ruby 1.9.2 , but a) this is a problem with installing RVM in the first place, and not using RVM to install a new version of Ruby and, more importantly, b) the best answers to such questions suggest that this is an error that occurs when accessing the old RVM site, i.e. rvm.beginrescueend.com. The solution is to use

curl -L get.rvm.io | bash -s stable

which I use, but which generates this error message for me, and therefore why I am stuck. Any help would be greatly appreciated, thanks

Phillip

+3
3

RVM Mac OS X Server 10.4.11.

:


. , . , cacert.pem .

mkdir ~/.certs
curl -o ~/.certs/cacert.pem http://curl.haxx.se/ca/cacert.pem
echo cacert = \"/Users/your-username/.certs/cacert.pem\" >> ~/.curlrc

bash

, RVM script, bash. , 4.2.

mkdir ~/tmp
cd ~/tmp
curl -C - -O ftp://ftp.cwru.edu/pub/bash/bash-4.2.tar.gz # letter O, not a zero
tar zxf bash-4.2.tar.gz
cd bash-4.2
./configure && make && sudo make install
sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
chsh -s /usr/local/bin/bash
cd /bin
sudo mv bash bash-old
sudo ln -s /usr/local/bin/bash bash

, bash 4.2.

bash --version
#=> GNU bash, version 4.2.0(1)-release (powerpc-apple-darwin8.11.1)
#=> ...

libtool

macports libtool. yaml.

, macports .

sudo port install libtool

, . .


gcc-4.2

, gcc-4.2, Xcode 2.5 . . AT & T Research:

curl -C - -O http://r.research.att.com/tools/gcc-4.2-5566-darwin8-all.tar.gz

Apple tarball (/), .

sudo tar fvxz gcc-4.2-5566-darwin8-all.tar.gz -C /

.


RVM.

curl -L get.rvm.io | bash -s stable --ruby

RVM , yaml ruby ​​ , .

UTF-8 , . .

Mac OS X Server 10.4.11 Build 8S2169 Mac Server G4 (QS2002) DP 1.0.

+3

echo insecure >> ~/.curlrc ? Mac.

+1

Just read the message, it will tell you what to do.

David's suggestion will work, but remember that it loads all of your downloads via curl or git into unsafe mode - it does not check if the certificate is trusted.

As a hint, you can also get answers to these questions (moreover, you received an error):

0
source

All Articles