Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 360
drewblaisdell Avatar asked Sep 30 '22 22:09

drewblaisdell


1 Answers

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.

like image 61
Jelle Avatar answered Nov 13 '22 03:11

Jelle