Skip to content

SSL connect issue to RubyGems - worked through troubleshooting guide #2379

@robinjfisher

Description

@robinjfisher

I'm having a problem. The specific error message is:

Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

I am using rbenv to manage my Ruby installations. I have a working project using Ruby 2.2.0 and there are no issues in this project. I would like to install and use Rails 5 which requires 2.2.2 or later.

I installed Ruby 2.3.0 using rbenv and created a new project directory, setting 2.3.0 as the local version for that directory. I execute gem install bundler or any gem install command and receive the above error. I have followed the steps in this guide.

Here are my environment details for the project folder set to use Ruby 2.3.0:

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.5.1
  - RUBY VERSION: 2.3.0 (2015-12-25 patchlevel 0) [x86_64-darwin14]
  - INSTALLATION DIRECTORY: /Users/robinjfisher/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
  - USER INSTALLATION DIRECTORY: /Users/robinjfisher/.gem/ruby/2.3.0
  - RUBY EXECUTABLE: /Users/robinjfisher/.rbenv/versions/2.3.0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/robinjfisher/.rbenv/versions/2.3.0/bin
  - SPEC CACHE DIRECTORY: /Users/robinjfisher/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/robinjfisher/.rbenv/versions/2.3.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-14
  - GEM PATHS:
     - /Users/robinjfisher/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
     - /Users/robinjfisher/.gem/ruby/2.3.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-document\\n"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/robinjfisher/.rbenv/versions/2.3.0/bin
     - /Users/robinjfisher/.rbenv/libexec
     - /Users/robinjfisher/.rbenv/plugins/ruby-build/bin
     - /Users/robinjfisher/.rbenv/plugins/rbenv-vars/bin
     - /Users/robinjfisher/.rbenv/shims
     - /Users/robinjfisher/.rbenv/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/local/openssl/bin
     - /Users/robinjfisher/.rbenv/shims
     - /Users/robinjfisher/.rbenv/bin

$ ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION'
OpenSSL 1.0.2p  14 Aug 2018

$ rbenv --version
rbenv 0.4.0-129-g7e0e85b

I will abide by the code of conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions