ruby on rails - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed -
i using authlogic-connect third party logins. after running appropriate migrations, twitter/google/yahoo logins seem work fine facebook login throws exception:
ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed
the dev log shows
openssl::ssl::sslerror (ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed): app/controllers/users_controller.rb:37:in `update'
please suggest..
i ran similar problem when trying use jquery generator rails 3
i solved this:
get curl certificate authority (ca) bundle. can with:
sudo port install curl-ca-bundle
[if using macports]- or pull down directly
wget http://curl.haxx.se/ca/cacert.pem
execute ruby code trying verify ssl certification:
ssl_cert_file=/opt/local/etc/certs/cacert.pem rails generate jquery:install
. in case, want either set environment variable somewhere server picks or addenv['ssl_cert_file'] = /path/to/your/new/cacert.pem
in environment.rb file.
you can install ca files (i haven't tried this) os -- there lengthy instructions here -- should work in similar fashion, have not tried personally.
basically, issue hitting web service responding certificate signed against ca openssl cannot verify.
Comments
Post a Comment