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
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-bundleport which contains the same root certificates used by Firefox:sudo port install curl-ca-bundleand tell your
httpsobject 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_pathattribute instead, with the default certificates location/etc/ssl/certs.