Created
August 10, 2012 04:23
-
-
Save shu0115/3311057 to your computer and use it in GitHub Desktop.
Omniauth + Facebook = OpenSSL::SSL::SSLError ref: http://qiita.com/items/f3d1cc3dbbe672f00a2b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -p /opt/local/share/curl | |
curl http://curl.haxx.se/ca/cacert.pem > ~/Downloads/cacert.pem | |
sudo cp ~/Downloads/cacert.pem /opt/local/share/curl/cacert.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.middleware.use OmniAuth::Builder do | |
provider :facebook, Settings.facebook_app_id, Settings.facebook_app_secret, { client_options: { ssl: { ca_file: "/opt/local/share/curl/cacert.pem" } } } | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment