Posted about 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.

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

  3. Start passenger as follows.

    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/.

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for old versions of Ruby on Rails (3.2 and 2.3).

Owner of this card:

Arne Hartherz
Last edit:
about 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