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

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

    Ruby can't find any root certificates to trust.

    Take a look at this blog post for a solution: "Ruby 1.9 and the SSL error".

    The solution is to install the curl-ca-bundle port which contains the same root certificates used by Firefox:

    sudo port install curl-ca-bundle
    

    and tell your https object to use it:

    https.ca_file = '/opt/local/share/curl/curl-ca-bundle.crt'
    

    Note that if you want your code to run on Ubuntu, you need to set the ca_path attribute instead, with the default certificates location /etc/ssl/certs.

提交回复
热议问题