The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Lighttpd with SSL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Guy Naor

Posts: 104
Nickname: familyguy
Registered: Mar, 2006

Guy Naor is one of the founders of famundo.com and a long time developer
Lighttpd with SSL Posted: May 1, 2006 12:19 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Guy Naor.
Original Post: Lighttpd with SSL
Feed Title: Famundo - The Dev Blog
Feed URL: http://devblog.famundo.com/xml/rss/feed.xml
Feed Description: A blog describing the development and related technologies involved in creating famundo.com - a family management sytem written using Ruby On Rails and postgres
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Guy Naor
Latest Posts From Famundo - The Dev Blog

Advertisement

I need SSL (https) support for famundo - it is our expectation that almost everything on famundo will be accessed through https, as the information our customers will put on it might be sensitive, and in any case, there are always privacy issues that need to be taken care of.

My web server of choice is lighttpd, and while implementing the SSL (https) part, I had two problems and finding the solution took some digging. So here’s what I did to get it to work.

  1. Listening to both http and https on the same server process - once ssl is activated in lighty using: ssl.engine = “enable”, the server start listening on port 443 only. It’s the SSL port, and now I can connect with https. But no more http connections are accepted. To solve this, the server needs to be instructed to bind to the SSL port as well as the regular port. In the config:

    $SERVER["socket"] == "0.0.0.0:443" {
        ssl.engine = "enable"
        ssl.pemfile = "/etc/lighttpd/server.pem"
    

    }

  2. Using a chained certificate will not work correctly with this setting. You will get https communications, but the browser will complain that the certificate isn’t authorizing correctly. To fix that, add the following line to thew config file:

    ssl.ca-file = “/etc/lighttpd/YourCACert.crt”

The ceret file you point to, is of the certification authority that signed your certificate. The client will then authenticate fully.

Read: Lighttpd with SSL

Topic: #caboose Previous Topic   Next Topic Topic: Announcing: Rails In a Nutshell

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use