Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running JRuby 9.4 and Puma with SSL #3108

Closed
treviateo opened this issue Mar 28, 2023 · 0 comments · Fixed by #3109
Closed

Running JRuby 9.4 and Puma with SSL #3108

treviateo opened this issue Mar 28, 2023 · 0 comments · Fixed by #3109

Comments

@treviateo
Copy link

treviateo commented Mar 28, 2023

Hi All,

I am trying to run JRuby 9.4.2.0 with ruby 3.1 and Puma 5.6.5 with SSL.

System Configuration:
JRuby: 9.4.2.0
Puma: 5.6.5
Open JDK: 1.8.0_322

I downloaded the sample keystore from https://github.com/puma/puma/blob/429d17bca11f8d22dcc1434c9f6ac826a06fa836/examples/puma/keystore.jks, password blahblah. And converted it to PKCS12 format.

The keystore looks ok as following:
keystore

When running JRuby with Puma and SSL binding as following:
C:\jruby-9.4.2.0\bin\jruby.exe C:[path_to_puma]\bin\puma -b "ssl://127.0.0.1:9292?keystore=C:.ssl\keystore&keystore-pass=blahblah&verify_mode=none" -q -p 9191

the server starts up ok as following:
console1
console2

However when trying to curl (curl https://localhost:9292 -v), it failed as following:
curl

And on the server console, this error keep popping up everytime the curl command is entered:
Error reached top of thread-pool: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer; (Java::JavaLang::NoSuchMethodError)
error

Does anyone have a hunch about this and could help with this issue? Thank you.

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

Successfully merging a pull request may close this issue.

2 participants