![]() ![]() I have run with the success the "gem install bundler" after installation, all it took was remove my intranet of the gem: gem sources -r Then I added my intranet to access gem source: gem sources -a I added these files on an intranet server, keeping the folder structure of the links above: ![]() Through a machine with unrestricted access to the internet, downloaded the following files: Thus, currently the certificate(AddTrustExternalCARoot-2048.pem) is expected to be on the following path lib/rubygems/ssl_certs//AddTrustExternalCARoot-2048.pemĪfter installing Ruby 2.2.3 (+ rubygems 2.5.1) successfully on a test machine with access to the internet, I had this SSL error when I installed bundler on a production machine, within the network.Īs I had network access limitations, and there was no way to change the settings for SSL access, and based on the error messages, I performed the steps below to be able to finish the installation of the bundler Put this file in the “rubygems\ssl_certs” directory at this location.Īs per rubygems commit, the certificates are moved to more specific directories. To do this:ĭownload the latest certificate, (currently AddTrustExternalCARoot-2048.pem)įind out where to put it: gem which rubygems But it is possible that you do not have the latest public key file for the new certificate. Uninstall update gem: gem uninstall rubygems-update -xĪt this point, you may be OK. Run update gem: update_rubygems -no-ri -no-rdocĬheck that rubygems was updated: rubygems –v Install update gem: gem install –-local full_path_to_the_gem_file Rubygems must first be updated manually.įirst find out what rubygems you have: rubygems –vĭepending on whether you have a 1.8.x, 2.0.x or 2.2.x, you will need to download an update gem, named “rubygems-update-X.Y.Z.gem”, where X.Y.Z is the version you need. Therefore rubygems itself can’t be updated using an older version of rubygems. ![]() The rubygems command line tool bundles the reference to the correct certificate. The reason for the problem is switched to a more secure SSL certificate (SHA-2 which use 256bit encryption). has a guide that not only explains how to fix this problem, but also why so many people are having it: SSL Certificate Update check for more details and this answer for fix. The Ruby Installer builds for windows are prepared by Luis Lavena and the path to certificates will be showing something like C:/Users/Luis/. (on old systems it might not be available - do not use an old system which does not receive security updates any more) Windows note Make sure to update package ca-certificates. Security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain > "$cert_file" ![]() Generate certificate: security find-certificate -a -p /Library/Keychains/System.keychain > "$cert_file" Update certificates: rvm osx-ssl-certs update allįind path for certificate: cert_file=$(ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE') Make sure you use latest rvm: rvm get stable How can I remove this warning/error entirely? WARNING: Unable to pull data from ' ': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ( ) However, I still got the issue above but as a warning: Then, when I tried to install rails again, it was successful. Unable to download data from - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ( )Īfter Googling around, I found that I could use a non-SSL source for rubygems so I ran: sudo gem sources -a When I attempt to install rails 3.2.14 in my gemset, I get the following issue:ĮRROR: Could not find a valid gem 'rails' (= 3.2.14), here is why: I am trying to do the Michael Hartl tutorial. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |