Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Puma compiled without SSL support (RuntimeError) Windows

I want to start Puma (v.5.2.2) using SSL in on Windows on Rails 6.

When I execute:

bundle exec puma 

I get the following error:

Puma compiled without SSL support (RuntimeError)

I have openssl installed:

>openssl version
OpenSSL 1.1.1j  16 Feb 2021

In the file puma.rb, I inserted:

ssl_bind '0.0.0.0', 3000, {
  key: 'mykey.key',
  cert: 'mykey.crt',
  verify_mode: 'none'
}

I generated mykey.key and mykey.crt and put them in Rails root folder.

What I've already tried, without success:

  • I reinstalled Puma after the installation of openssl

  • I ran the server using this command: rails s -b "ssl://localhost:3000?key=mykey.key&cert=mykey.crt"

  • I tried Puma version 4.x.x

like image 232
Luskmo Avatar asked Jan 25 '26 16:01

Luskmo


1 Answers

> ruby -rpuma -e "puts Puma.ssl?"
false
gem install puma
> ruby -rpuma -e "puts Puma.ssl?"
true
like image 135
Dorian Avatar answered Jan 27 '26 07:01

Dorian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!