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

后端 未结 30 2874
太阳男子
太阳男子 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 04:58

    The reason that you get this error on OSX is the rvm-installed ruby.

    If you run into this issue on OSX you can find a really broad explanation of it in this blog post:

    http://toadle.me/2015/04/16/fixing-failing-ssl-verification-with-rvm.html

    The short version is that, for some versions of Ruby, RVM downloads pre-compiled binaries, which look for certificates in the wrong location. By forcing RVM to download the source and compile on your own machine, you ensure that the configuration for the certificate location is correct.

    The command to do this is:

    rvm install 2.2.0 --disable-binary
    

    if you already have the version in question, you can re-install it with:

    rvm reinstall 2.2.0 --disable-binary
    

    (obviously, substitute your ruby version as needed).

提交回复
热议问题