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
The most straightforward answer which worked for me was this
sudo apt-get install openssl ca-certificates
And voila!!!