Hi there,
After encountering the well know SSL certificate problem when trying to install a gem:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz
I followed the instructions for using update packages here. As confirmation of its success, I checked the certs were installed
$ gem which rubygems
/Users/diarmuidoconnor/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems.rb
$
$ cd /Users/diarmuidoconnor/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ssl_certs/
$
$ ls -la
total 48
drwxr-xr-x 11 diarmuidoconnor staff 374 16 Dec 07:50 .
drwxr-xr-x 71 diarmuidoconnor staff 2414 16 Dec 07:50 ..
-rw-r--r-- 1 diarmuidoconnor staff 1521 30 Mar 2015 AddTrustExternalCARoot-2048.pem
-rw-r--r-- 1 diarmuidoconnor staff 1952 30 Mar 2015 AddTrustExternalCARoot.pem
-rw-r--r-- 1 diarmuidoconnor staff 834 30 Mar 2015 Class3PublicPrimaryCertificationAuthority.pem
-rw-r--r-- 1 diarmuidoconnor staff 1367 30 Mar 2015 DigiCertHighAssuranceEVRootCA.pem
-rw-r--r-- 1 diarmuidoconnor staff 1740 30 Mar 2015 EntrustnetSecureServerCertificationAuthority.pem
-rw-r--r-- 1 diarmuidoconnor staff 1216 30 Mar 2015 GeoTrustGlobalCA.pem
drwxr-xr-x 3 diarmuidoconnor staff 102 16 Dec 07:50 index.rubygems.org
drwxr-xr-x 3 diarmuidoconnor staff 102 16 Dec 07:50 rubygems.global.ssl.fastly.net
drwxr-xr-x 3 diarmuidoconnor staff 102 16 Dec 07:50 rubygems.org
$
$ ls -la index.rubygems.org/
total 8
drwxr-xr-x 3 diarmuidoconnor staff 102 16 Dec 07:50 .
drwxr-xr-x 11 diarmuidoconnor staff 374 16 Dec 07:50 ..
-rw-r--r-- 1 diarmuidoconnor staff 1261 16 Dec 07:50 GlobalSignRootCA.pem
$ ls -la rubygems.global.ssl.fastly.net/
total 8
drwxr-xr-x 3 diarmuidoconnor staff 102 16 Dec 07:50 .
drwxr-xr-x 11 diarmuidoconnor staff 374 16 Dec 07:50 ..
-rw-r--r-- 1 diarmuidoconnor staff 1367 16 Dec 07:50 DigiCertHighAssuranceEVRootCA.pem
$ ls -la rubygems.org/
total 8
drwxr-xr-x 3 diarmuidoconnor staff 102 16 Dec 07:50 .
drwxr-xr-x 11 diarmuidoconnor staff 374 16 Dec 07:50 ..
-rw-r--r-- 1 diarmuidoconnor staff 1521 16 Dec 07:50 AddTrustExternalCARoot.pem
$
Note the files and folders dated '16 Dec' (yesterday). Seeks ok, however when I try to install any gem I still get the same SSL certs error.
As a workaround, I changed my remote sources to use http (instead of https) and installed the gems I need for development - bad solution, I know. Obviously I want to resume using https but cannot.
The environment is:
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.7
- RUBY VERSION: 2.2.1 (2015-02-26 patchlevel 85) [x86_64-darwin14]
- INSTALLATION DIRECTORY: /Users/diarmuidoconnor/.rvm/gems/ruby-2.2.1
- USER INSTALLATION DIRECTORY: /Users/diarmuidoconnor/.gem/ruby/2.2.0
- RUBY EXECUTABLE: /Users/diarmuidoconnor/.rvm/rubies/ruby-2.2.1/bin/ruby
- EXECUTABLE DIRECTORY: /Users/diarmuidoconnor/.rvm/gems/ruby-2.2.1/bin
- SPEC CACHE DIRECTORY: /Users/diarmuidoconnor/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-14
- GEM PATHS:
- /Users/diarmuidoconnor/.rvm/gems/ruby-2.2.1
- /Users/diarmuidoconnor/.rvm/gems/ruby-2.2.1@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org/"]
- "gem" => "--no-document"
- REMOTE SOURCES:
- http://rubygems.org/
- SHELL PATH:
- /Users/diarmuidoconnor/.rvm/gems/ruby-2.2.1/bin
- /Users/diarmuidoconnor/.rvm/gems/ruby-2.2.1@global/bin
- /Users/diarmuidoconnor/.rvm/rubies/ruby-2.2.1/bin
- /Users/diarmuidoconnor/.rvm/bin
- /Users/diarmuidoconnor/.nvm/versions/node/v4.2.2/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /usr/local/bin
- /Users/diarmuidoconnor/Development/android-sdk-macosx/tools
- /usr/local/mongodb/bin
$
Some other environment context:
Thanks in advance of your help
Diarmuid
Hi there,
After encountering the well know SSL certificate problem when trying to install a gem:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gzI followed the instructions for using update packages here. As confirmation of its success, I checked the certs were installed
Note the files and folders dated '16 Dec' (yesterday). Seeks ok, however when I try to install any gem I still get the same SSL certs error.
As a workaround, I changed my remote sources to use http (instead of https) and installed the gems I need for development - bad solution, I know. Obviously I want to resume using https but cannot.
The environment is:
Some other environment context:
Thanks in advance of your help
Diarmuid