This might be your solution if you’re struggling with SSL issues while installing a version of Ruby with RVM

by John Norris

rvm install "ruby-3.2.2" --with-openssl-dir=$(brew --prefix openssl)