Skip to content

Instantly share code, notes, and snippets.

@skplunkerin
Last active February 21, 2023 20:48
Show Gist options
  • Save skplunkerin/d6e445b5c36d8e2ae8fc227771cac2e6 to your computer and use it in GitHub Desktop.
Save skplunkerin/d6e445b5c36d8e2ae8fc227771cac2e6 to your computer and use it in GitHub Desktop.
Puma compiled without SSL support (RuntimeError)

When running a Rails project locally that needs SSL support you might get the following type of error:

... Puma compiled without SSL support (RuntimeError)

Here's how to fix it:

SO answer

If ruby -rpuma -e "puts Puma.ssl?" returns false then manually install Puma (not from the bundler gem file):

gem install puma

Still doesn't work? Check if the Gemfile has a specific puma version defined; you'll need to manually install that one:

gem install puma -v 5.6.4

ruby -rpuma -e "puts Puma.ssl?" should now return true, and running the Rails server should now work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment