Skip to content

Instantly share code, notes, and snippets.

@kt103099
Created July 26, 2012 16:40
Show Gist options
  • Save kt103099/3183125 to your computer and use it in GitHub Desktop.
Save kt103099/3183125 to your computer and use it in GitHub Desktop.
Faraday::Error::ConnectionFailed
Omniauth Facebook Error - Faraday::Error::ConnectionFailed
Faraday::Error::ConnectionFailed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, '<key from fb>', '<another key from fb>'
end
class SessionsController < ApplicationController
def create
raise request.env["omniauth.auth"].to_yaml
end
end
$ rvm remove 1.9.3 (or whatever version of ruby you are using)
$ rvm pkg install openssl
$ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
$ cd $rvm_path/usr/ssl
$ sudo curl -O http://curl.haxx.se/ca/cacert.pem
$ sudo mv cacert.pem cert.pem
@travisjtodd
Copy link

This worked! Finally. Thanks!

@nzaillian
Copy link

Big 👍 There's a lot of unhelpful or out-of-date stuff about this issue around. This one nailed it for me on 10.8.3

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