English 中文(简体)
SSL Error AbdiAuth, 铁路
原标题:SSL Error OmniAuth in Ruby on Rails

我就这一错误,特别是铁路3号总协定中的错误,读了很多。 我有几个问题,因为目前我 st忙。

上的共识是,可以适当提及cer。 我的第一个问题是(如果使用视窗7来预谈问题):

我的辛勤努力究竟是在什么地方? 我使用铁路分机安装了铁路3号,而我发现该地点附近的唯一一件事是“盖特”号,那里有一份有卡帕底档案的“证书”目录。 然而,大多数人的意思是这种“/etc/certs/”或某种(主要是相对的ur)。 我的问题是,参考的是哪位家长? 这可能非常简单,但我不知道。 它是我的铁路拖拉机在C号:/目录中的夹子吗?

问题回答

在我的召集人中。

require "omniauth-facebook"

if RbConfig::CONFIG["host_os"] =~ /mingw|mswin/
    ca_file = File.expand_path Rails.root.join("config", "cacert.pem")

    ssl_options = {}
    ssl_options[:ca_path] =  /etc/ssl/certs  if Rails.env.staging?
    ssl_options[:ca_file] = ca_file

    config.omniauth :facebook, "APP_ID", "APP_SECRET", # "APP_ID", "APP_SECRET" your got from facebook app registration
        :client_options => {:ssl => ssl_options}
else
    config.omniauth :facebook, "APP_ID", "APP_SECRET"
end

http://curl.haxx.se/ca/ rel=“nofollow noreferer” 带给你的铁路局

通过这些员额:

  • 为什么使用Windows机械化器进入SSL站点,但是在宏观工作中?

  • http://grokbase.com/p/gg/rubyonrails-talk/121bfxzwke/rails-re-windows-rails-1-3-3-3-om-niauth-browser-s-sl-slerro/

Hi Vivek I resolve this issue on windows 7, you can get certificate from here: https://gist.github.com/fnichol/867550

该证书的地址是C:RailsInstallercacert.pem

完全形象:混血者

OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :facebook,  4545454545fgdfg , 545fg45fdh4f5d4gh5fd4h5fd4h5fd4h ,
  {:scope =>   , :client_options => { :ssl => { :ca_file =>  C:RailsInstallercacert.pem }}} 
end




相关问题
ssl on login form?

I have SSL on my website....when the user logs in from a http page the form action is sent to https page, would this still secure the posted data? Or would it be better to have the form and the page ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Why can t I find the truststore for an SSL handshake?

I m using the Spring RESTTemplate on the client side to make calls to a REST endpoint. The client in this case is a Spring app and Tomcat is the servlet container. I m running into issues making a ...

To add more parameter for my http header for SSL/TLS

As far as I understand, https is http plus SSL/TLS. What do I need to do if I want to add 3 more parameters for the header? I found a file inside Mozilla s NSS - ssl3ext.c, but I don t understand it ...

Why am I getting handshake_failure with Java SSL cert?

I m trying to use Hudson (which uses SVNKit) to access a Subversion repository that requires a client certificate to access it. I can access the same repository using the same client certificate via ...

热门标签