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:

  1. 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
  2. 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 add env['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

Popular posts from this blog

Angularjs unit testing - ng-disabled not working when adding text to textarea -

sql - invalid in the select list because it is not contained in either an aggregate function -

How to start daemon on android by adb -