SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

后端 未结 30 2451
太阳男子
太阳男子 2020-11-22 04:29

I am using Authlogic-Connect for third party logins. After running appropriate migrations, Twitter/Google/yahoo logins seem to work fine but the facebook login throws except

30条回答
  •  清酒与你
    2020-11-22 05:00

    Just because instructions were a slight bit different for what worked for me, I thought I add my 2 cents:

    I'm on OS X Lion and using macports and rvm

    I installed curl-ca-bundle:

    sudo port install curl-ca-bundle
    

    Then I adjusted my omniauth config to be this:

    Rails.application.config.middleware.use OmniAuth::Builder do
      provider :google_oauth2, APP_CONFIG['CONSUMER_KEY'], APP_CONFIG['CONSUMER_SECRET'],
               :scope => 'https://www.google.com/m8/feeds https://www.googleapis.com/auth/userinfo.profile',
               :ssl => {:ca_path => "/share/curl/curl-ca-bundle.crt"}
    end
    

提交回复
热议问题