问题
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