Posted almost 4 years ago. Visible to the public.

How to enable SSL in development with Passenger standalone

Here is how to start your Rails application to accept both HTTP and HTTPS in development.

Note that, unlike our ancient Passenger/Apache guide, this does not require any complicated Apache setup.

  1. Install passenger.

    Copy
    gem install passenger
  2. Create a self-signed SSL certificate.

  3. Start passenger as follows.

    Copy
    passenger start --ssl --ssl-certificate localhost.crt --ssl-certificate-key localhost.key --ssl-port 3001

    Note that we also set --ssl-port. If you omit that argument, passenger will no longer accept HTTP which might be just fine.

  4. Connect to https://localhost:3001/.

makandra has been working exclusively with Ruby on Rails since 2007. Our laser focus on a single technology has made us a leader in this space.

Owner of this card:

Avatar
Arne Hartherz
Last edit:
almost 4 years ago
by Arne Hartherz
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Arne Hartherz to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more