Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I will tell you about my task: I need to pay my users, but I want to make it secure with SSL. I created self-signe certificate using this post - http://www.tc.umn.edu/~brams006/selfsign.html.

I followed 1A instruction.

Also, installed these gems:

     gem 'rack-ssl'
     gem 'bartt-ssl_requirement', '~>1.4.0', :require => 'ssl_requirement'

I have only one payment page, so I added in my controller:

    ssl_required :admin_page

On this page admin see unpayed payments and pays to users.

I read this article http://www.simonecarletti.com/blog/2011/05/configuring-rails-3-https-ssl/ and followed instructions about how to use https protocol. I tried to add it into my application.rb and development.rb.

I have this line in my application.rb

      config.force_ssl = false

Should I delete it ?

Error from development log:

      Filter chain halted as :ensure_proper_protocol rendered or redirected

How can I solve this and how I should use SSL certificate ?

share|improve this question
This is off topic for us, but might be all right for one of our sister sites. I've contacted the moderators to see if they want it and will migrate if they say yes. – ChrisF Aug 2 '12 at 17:21

closed as off topic by ChrisF Aug 2 '12 at 17:21

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.