brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/64555220bfbf4a25598523c2e4d3a232560eaad7/Formula/openssl.rb -f
This should install openssl in /usr/local/opt/openssl
If you already have 1.1 installed, you should have 2 versions of opensll in: /user/local/opt/
[email protected]
openssl
(1.0)
Install or Reinstall the version you want, but you must do it with --with-openssl-dir
and pass the path of openssl (1.0).
In my case is /usr/local/opt/openssl
rvm install YOUR-RUBY-VERSION --with-openssl-dir='/usr/local/opt/openssl'
For ubuntu 20.04, follow these steps to install openssl 1.0:
/etc/apt/sources.list
and add this at the end of the file:deb http://security.ubuntu.com/ubuntu bionic-security main
sudo apt-get update && apt-cache policy libssl1.0-dev
sudo apt-get install libssl1.0-dev
Then run the RVM command with your openssl1.0 dir (
/usr/local/ssl/bin
here, you can check if the version is correct with./usr/local/ssl/bin/openssl version
):rvm install YOUR-RUBY-VERSION --with-openssl-dir='/usr/local/ssl/bin'