It is possible you do not have a fully up to date root certificate list,
root certificates are stores in the browser, but OpenSSL uses its own

Since you are using rvm on OS X by the look of it, so you may want to try
the following command to see if this helps

rvm osx-ssl-certs update

On Monday, 8 June 2015 18:07:23 UTC+1, wrote:

I have web site that open ok in the browser - no errors or warnings about
the certificate. When I open it with open(), I get the following error:

`SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
certificate verify failed' (OpenSSL::SSL::SSLError)

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:852:in

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:318:in

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in
`block in open_loop'

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in

from /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in

from t.rb:13:in `<main>'

raise exception

Trying another SSL enabled site ( works ok.

Any ideas here?


You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
grouprubyonrails-talk @
postedJun 8, '15 at 5:07p
activeJun 13, '15 at 9:30a

2 users in discussion

Joe: 2 posts Mike Simkins: 2 posts



site design / logo © 2021 Grokbase