OSX Yosemite and RVM Broken SSL

My OS is OS X Yosemite (10.10.5), and I installed RVM to manage ruby ​​versions and gemsets. I use different gemset and I have problems with SSL randomly (most often when I restart and change gemset). So, for example, this is the error I get when I do bundle:

Retrieving the source index from https://rubygems.org/

Retrying attempted error (2/4): Bundler :: Fetcher :: CertificateFailureError Failed to validate SSL certificate https://rubygems.org/ . There is a chance that you are experiencing a “man in the middle” attack, but most likely your system does not have the CA certificates required for verification. For information on OpenSSL certificates, see http://railsapps.imtqy.com/openssl-certificate-verify-failed.html . to connect without using SSL, edit the Gemfile sources and change "https" - "http". Retrying due to error (3/4): Bundler :: Fetcher :: CertificateFailureError Failed to verify SSL certificate https://rubygems.org/. There is a chance that you are experiencing a “man in the middle” attack, but most likely your system does not have the CA certificates required for verification. For information on OpenSSL certificates, see http://railsapps.imtqy.com/openssl-certificate-verify-failed.html . to connect without using SSL, edit the Gemfile sources and change "https" - "http". Retry attempt due to error (4/4): Bundler :: Fetcher :: CertificateFailureError Failed to validate SSL certificate https://rubygems.org/ . There is a chance that you are experiencing a “man in the middle” attack, but most likely your system does not have the CA certificates required for verification. For information on OpenSSL certificates, see http://railsapps.imtqy.com/openssl-certificate-verify-failed.html. to connect without using SSL, edit the Gemfile sources and change 'https' to 'http'. Failed to verify SSL certificate for https://rubygems.org/ . It is likely that you are experiencing a man-in-the-middle attack, but most likely your system does not have the CA certificates required for verification. For information on OpenSSL certificates, see http://railsapps.imtqy.com/openssl-certificate-verify-failed.html . To connect without using SSL, edit the Gemfile sources and change "https" to "http".

RVM (- ), , : curl https://curl.haxx.se/ca/cacert.pem -o "$(ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE')" ( ).

( /gemset ) . ? - ?

+4
1

, :

rvm install 2.3.0 --disable-binary

, SSL_CERT_FILE cacert.pem. , Rubies .

+1

Source: https://habr.com/ru/post/1663501/


All Articles