Created
July 26, 2012 16:40
-
-
Save kt103099/3183125 to your computer and use it in GitHub Desktop.
Faraday::Error::ConnectionFailed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
This worked! Finally. Thanks!