[ruby-core:113740] [Ruby master Bug#19707] Backport openssl fix to ruby_3_2 branch