Chrome asks to “Select a Certificate” for SSL on my Rails app using thin

帅比萌擦擦* 提交于 2019-12-01 17:27:19

问题


I have a Rails app that is configured to only use SSL. I also have free SSL certificates from StartSSL.

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 &

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.

This behavior is not desirable. How do I set up thin with SSL in such a way that this dialog does not appear?


回答1:


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.

Solution: start thin with --ssl-disable-verify.



来源:https://stackoverflow.com/questions/23354311/chrome-asks-to-select-a-certificate-for-ssl-on-my-rails-app-using-thin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!