This is a known issue when using Ruby with OpenSSL 3.6.0. According to the last comment on the issue this was fixed with Ruby 3.4.7 by building it against OpenSSL 3.5.4 instead of OpenSSL 3.6.0.