Skip to content

Instantly share code, notes, and snippets.

@darrenboyd
Last active January 11, 2024 09:02
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save darrenboyd/58647ca3c31bd0ed4105 to your computer and use it in GitHub Desktop.
Save darrenboyd/58647ca3c31bd0ed4105 to your computer and use it in GitHub Desktop.
A quick guide to downgrading OpenSSL with Homebrew

OBSOLETE

THIS INFORMATION IS NOW OUT OF DATE, AND EXISTS HERE ONLY FOR ARCHIVAL PURPOSES

TROUBLESHOOTING

Excon Error

You may suffer an error that looks like this. It's possible you are setting up a new Mac, or you just recompiled your Ruby.

Excon::Errors::SocketError in ...
Bad address (Errno::EFAULT)

At fault is OpenSSL (or, an integration with it). You'll likely need to get a different version of it. Assuming you are using Homebrew, do the following...

$ brew tap homebrew/versions
$ brew versions openssl

You should see a number of versions listed, look for 1.0.1l...

...
1.0.1l   git checkout b5cffc8 /usr/local/Library/Formula/openssl.rb
...
# Get this version in your Library by doing...
$ cd /usr/local/Library/Formula/
$ git checkout b5cffc8 /usr/local/Library/Formula/openssl.rb

NOTE: Make sure you use your path and git-ref, not what is shown in this example.

Then rebuild ruby.

  $ rvm reinstall 2.1.0 # CHANGE TO YOUR RUBY VERSION

And that should fix it.

@Victorcorcos
Copy link

@mahcloud , the solution you provided is not working anymore

$ brew tap homebrew/boneyard

==> Tapping homebrew/boneyard
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard'...
remote: Repository not found.
fatal: repository 'https://github.com/Homebrew/homebrew-boneyard/' not found
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-boneyard /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard --origin=origin --template= --config core.fsmonitor=false` exited with 128.

@mahcloud
Copy link

@mahcloud , the solution you provided is not working anymore

$ brew tap homebrew/boneyard

==> Tapping homebrew/boneyard
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard'...
remote: Repository not found.
fatal: repository 'https://github.com/Homebrew/homebrew-boneyard/' not found
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-boneyard /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard --origin=origin --template= --config core.fsmonitor=false` exited with 128.

sorry @Victorcorcos , it looks like this document has been labeled as obsolete

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