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

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

    I've try install curl-ca-bundle with brew, but the package is no available more:

    $ brew install curl-ca-bundle
    Error: No available formula for curl-ca-bundle 
    Searching formulae...
    Searching taps...
    

    The solution that worked to me on Mac was:

     $ cd /usr/local/etc/openssl/certs/
     $ sudo curl -O http://curl.haxx.se/ca/cacert.pem
    

    Add this line in your ~/.bash_profile (or ~/.zshrc for zsh):

    export SSL_CERT_FILE=/usr/local/etc/openssl/certs/cacert.pem
    

    Then update your terminal:

    $ source ~/.bash_profile
    

提交回复
热议问题