Chrome 要求“选择证书"使用 Thin 在我的 Rails 应用程序上使用 SSL [英] Chrome asks to "Select a Certificate" for SSL on my Rails app using thin
问题描述
我有一个配置为仅使用 SSL 的 Rails 应用程序.我还有来自 StartSSL 的免费 SSL 证书.
I have a Rails app that is configured to only use SSL. I also have free SSL certificates from StartSSL.
我使用 Thin 作为我的网络服务器,并使用以下命令:
I use thin as my web server with this command:
thin start -p 80 & thin start -p 443 --ssl --ssl-key-file ./.ssl/sslkey.key --ssl-cert-file ./.ssl/sslcert.cert &
这在技术上是有效的——访问我网站的 http 版本会重定向到 https 版本.但是,当我访问该站点时,Chrome 和 Safari 都会提示我从本地钥匙串中选择证书"以与服务器进行验证.
This technically works-- visiting the http version of my site redirects to the https version. However, Chrome and Safari both prompt me when I visit the site to "Select a Certificate" from my local Keychain to validate with the server.
这种行为是不可取的.如何使用 SSL 进行精简设置,从而不出现此对话框?
This behavior is not desirable. How do I set up thin with SSL in such a way that this dialog does not appear?
推荐答案
正如 joelmaranho 所指出的,这似乎是一个 thin
问题.在他撰写本文时,解决方案 --ssl-disable-verify
尚未在 thin
中可用,而是 现在.
As joelmaranho points out, this appears to be a thin
issue. At the time of his writing, the solution, --ssl-disable-verify
, was not yet available in thin
, but is is now.
解决方案:从 --ssl-disable-verify
开始.
Solution: start thin with --ssl-disable-verify
.
这篇关于Chrome 要求“选择证书"使用 Thin 在我的 Rails 应用程序上使用 SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!