plataformatec/devise — Issue #1404: SSL error using Devise in production env
Author: jethar
Created: 2011-10-28 02:55:04+00:00
State: open

I am using Devise 1.4.2 with Rails 3.0.9. When using in development mode, everything works fine. However in production mode I am getting the following error -

OpenSSL::SSL::SSLError in Devise::SessionsController#create
SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A

I have tried adding the SSL support using the Rack::SSL, configured in various modes like Thin server only and then nginx-thin.

I am using self-signed certificate by the way as I am still testing. Is this a bug or am I doing something wrong here.