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:
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".
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')" ( ).
curl https://curl.haxx.se/ca/cacert.pem -o "$(ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE')"
( /gemset ) . ? - ?
, :
rvm install 2.3.0 --disable-binary
, SSL_CERT_FILE cacert.pem. , Rubies .
SSL_CERT_FILE
cacert.pem
Source: https://habr.com/ru/post/1663501/More articles:How to fix ctrl + c inside docker container - shellOracle 12c Inline View Evaluation - oracleDynamic component click event in Vue - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1663499/how-to-keep-identityserver-access-token-expiration-in-sync-with-cookie-expiration&usg=ALkJrhgT8DV2420h22ILiBsy0w-qdnxfiwОшибка AVPlayerItem: операция остановлена - iosSpring Boot gives NoInitialContextException java.naming.factory.initial - javaPython product of infinite generators - pythonSitecore Custom Log, how to write only one file per day? - log4netI cannot apply js color set (jscolor.js) in input field - javascriptAt OAO, how do I get a hex of color? - javascriptAll Articles