问题描述
我使用 Heroku 部署了一个 Facebook 应用程序,并让它在本地部分运行.我可以看到我的应用程序,但是一旦我点击与 Facebook 连接,我就会收到一条内部服务器错误消息.这是福尔曼扔的东西:
I deployed a Facebook app using Heroku and got it partially working locally. I can see my app but I as soon as I click on connect with Facebook I get an Internal Server Error Message. This is what Foreman is throwing:
OpenSSL::SSL::SSLError - SSL_connect returned=1 errno=0 state=SSLv3 读取服务器证书 B:证书验证失败:
一切都适用于生产,但我需要让本地工作开始整合 Mongo 和 FB.
Everything works on Production but I need to get local working to start integrating Mongo and FB.
我遵循了以下所有说明:https://devcenter.heroku.com/articles/facebook#working-locally.我创建了开发应用程序并相应地修改了 .env 文件.我创建了一个自签名证书,但我不确定这是否是以下内容.
I followed all the instructions on: https://devcenter.heroku.com/articles/facebook#working-locally. I created the dev app and modified the .env file accordingly. I created a self-signed certificate but I'm not sure if this is what follows.
我在 Mac OS 10.8.2 上运行 ruby 1.9.3p194、OpenSSL 1.0.1c、sinatra 1.2.6 和 Foreman.
I'm on Mac OS 10.8.2 running ruby 1.9.3p194, OpenSSL 1.0.1c, sinatra 1.2.6 and Foreman.
推荐答案
我也遇到了同样的问题,解决了
I had the same trouble and solved it
尝试将以下行添加到您的 Gemfile 中
try add the following line into your Gemfile
gem 'certified'
并执行
bundle
再次运行!
这篇关于OpenSSL::SSL::SSLError - SSL_connect 返回=1 errno=0 state=SSLv3 读取服务器证书 B:证书验证失败:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!