SSL error (w/ Homebrew & Ruby 2.0.0-p0 from rbenv) #136

Pym opened this Issue Apr 19, 2013 · 0 comments


None yet
1 participant

Pym commented Apr 19, 2013

Hello there,

I can't make gist work when installing with Homebrew and Ruby 2.0.0-p0. Otherwise, I have no problem when installing via RubyGem nor when running system's Ruby.

$ echo 'hello' | gist
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Here is my configuration:

  • Mac OS X 10.8.3
  • OpenSSL from Homebrew (linked with --force)
  • cURL from Homebrew (brew install curl --with-ssl linked with --force)
  • curl-ca-bundle from Homebrew with export SSL_CERT_FILE=/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt in my .zshrc
  • Ruby 2.0.0-p0 installed with rbenv: CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl)" rbenv install 2.0.0-p0

And a little bit more information:

$ which ruby && ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]

$ which openssl && openssl version
OpenSSL 1.0.1e 11 Feb 2013

$ ruby -ropenssl -e "puts OpenSSL::VERSION"

$ ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE'

$ curl

Give me no error and works as expected.

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment