As of Homebrew f4d2141 there is a --force option.

brew cleanup --force openssl

References: man brew

Answer from StvnW on Stack Exchange
🌐
GitHub
gist.github.com › darrenboyd › 58647ca3c31bd0ed4105
A quick guide to downgrading OpenSSL with Homebrew · GitHub
Copy link · Copy Markdown · Looks like brew versions was removed: Unknown command: versions · This is an alternative way: brew update brew uninstall openssl brew install openssl101 ·
🌐
Brett Terpstra
brettterpstra.com › 2020 › 08 › 06 › solving-rvm-and-openssl-issues-with-homebrew
Solving RVM and OpenSSL issues with Homebrew - BrettTerpstra.com
August 6, 2020 - In fact, I was running into issues ... dozen other solutions I tried. Here’s the magic formula that worked: brew uninstall openssl --ignore-dependencies brew tap-new $USER/old-openssl brew ......
Discussions

macos - Homebrew: can't remove 'keg-only' OpenSSL application - Ask Different
Given the recent OpenSSL scare I'm trying to clean out older versions from my machines but Homebrew won't let me: $ brew dirty openssl (1.0.1e, 1.0.1f, 1.0.1g) $ brew cleanup openssl Warning: Skip... More on apple.stackexchange.com
🌐 apple.stackexchange.com
macos - Update OpenSSL on OS X with Homebrew - Stack Overflow
brew rm curl && brew install curl --with-openssl brew uninstall php56 && brew install php56 --with-homebrew-curl --with-openssl More on stackoverflow.com
🌐 stackoverflow.com
How to properly upgrading openssl with Homebrew? - Server Fault
I just resolved a dependency issue in some software installed via Homebrew so the outdated openssl 1.1 can finally be removed. I did that with brew uninstall openssl@1.1 and it warned brew uninstall More on security.stackexchange.com
🌐 security.stackexchange.com
Can not install/upgrade formulae cause openssl is outdated
$ brew uninstall openssl Error: Refusing to uninstall /usr/local/Cellar/openssl/1.0.2k because it is required by mysql 5.7.17, which is currently installed. More on github.com
🌐 github.com
3
November 6, 2017
🌐
Server Fault
serverfault.com › questions › 1176925 › how-to-properly-upgrading-openssl-with-homebrew
How to properly upgrading openssl with Homebrew? - Server Fault
March 23, 2025 - I just resolved a dependency issue in some software installed via Homebrew so the outdated openssl 1.1 can finally be removed. I did that with brew uninstall openssl@1.1 and it warned brew uninstall
🌐
Hinode
flypenguin.de › home › 2020th › 5th › 6th › homebrew, openssl and powershell
Homebrew, OpenSSL and PowerShell - Fly, Penguin!
July 11, 2024 - Unfortunately, homebrew switched to OpenSSL version 1.1 in v2.2, because OpenSSL 1.0 is end-of-life. ... brew uninstall openssl --ignore-dependencies brew uninstall openssl --ignore-dependencies brew install https://github.com/tebelorg/Tump...
🌐
GitHub
gist.github.com › aklap › e885721ef15c8668ed0a1dd64d2ea1a7
Resolving missing link to libcrypto/openssl on OSX · GitHub
There are 2 uninstall commands to make sure any OpenSSL v1.1 is removed, and any dead v1.0 is removed, before installing v1.0. ... brew uninstall --ignore-dependencies openssl brew install https://raw.githubusercontent.com/Homebrew/homebrew...
🌐
JDeen
jdeen.com › blog › uninstalling-packages-installed-with-homebrew
Uninstalling packages installed with Homebrew | JDeen
January 27, 2022 - $ brew deps ruby ca-certificates libyaml openssl@1.1 readline · Force Remove: The force option will ignore errors and uninstall all versions of the formula installed.
Find elsewhere
🌐
OS X Daily
osxdaily.com › home › how to uninstall packages with homebrew
How to Uninstall Packages with Homebrew - OS X Daily
July 29, 2018 - % brew deps python3 gdbm openssl readline sqlite xz · Since many other packages also use those dependencies, if you were to remove python3 you’d almost certainly want to issue the –ignore-dependencies flag. The same applies to node.js and npm, and many other popular Homebrew packages. Do you know of any other methods or tips related to uninstalling ...
🌐
GitHub
github.com › Homebrew › brew › issues › 3431
Can not install/upgrade formulae cause openssl is outdated · Issue #3431 · Homebrew/brew
November 6, 2017 - $ brew uninstall --ignore-dependencies openssl Uninstalling /usr/local/Cellar/openssl/1.0.2k...
Author   Homebrew
🌐
GitHub
github.com › Homebrew › homebrew-core › issues › 4752
openssl: files remain in etc/openssl after uninstall · Issue #4752 · Homebrew/homebrew-core
September 12, 2016 - Bug reports: After a fresh install with the instructions from http://brew.sh, installing and then removing openssl shows that files are left behind in the /etc/openssl folder: $ brew install openssl && brew remove openssl ... $ b...
Author   Homebrew
🌐
GitHub
github.com › kelaberetiv › TagUI › issues › 635
macOS OpenSSL version issue - Homebrew moved it from v1.0 to v1.1 - initial fix · Issue #635 · aisingapore/TagUI
November 29, 2019 - Today I encountered some error related to openssl while installing tagui on my mac computer. 2.2.0 version of homebrew released on November 27. In this version openssl 1.0 has been deleted for end of life.brew install openssl now installs version 1.1
Author   aisingapore
🌐
GitHub
github.com › Homebrew › homebrew-core › issues › 177425
sl: `brew uninstall sl` produces misleading warning about openssl · Issue #177425 · Homebrew/homebrew-core
July 15, 2024 - $ brew uninstall sl Uninstalling /opt/homebrew/Cellar/sl/5.02... (7 files, 40.0KB) Warning: The following may be sl configuration files and have not been removed! If desired, remove them manually with `rm -rf`: /opt/homebrew/etc/openssl@1.1 ...
Author   Homebrew
🌐
Homebrew
formulae.brew.sh › formula › openssl@3
Homebrew Formulae: openssl@3
brew install openssl@3 · Also known as: openssl, openssl@3.6 · Cryptography and SSL/TLS Toolkit · https://openssl-library.org · License: Apache-2.0 · Development: Pull requests · Formula JSON API: /api/formula/openssl@3.json · Formula code: openssl@3.rb on GitHub ·
🌐
Super User
superuser.com › questions › 855393 › python-broken-after-conda-remove-openssl
macos - python broken after conda remove openssl - Super User
December 21, 2014 - I tried both, and each time brew returns an apparently successful reinstall of openssl. However, this does not resolve the issue: ipython, pip, and conda all still return the same error message. ... @aph - sorry to hear it. Have you tried a reinstall of the other problem packages with --force? (Sorry, I don't really use Brew - I use MacPorts). ... all packages actually seem to have the same problem. Once I uninstalled openssl, that alone triggered pip, conda, and iPython to break.
Top answer
1 of 1
2

MacOS includes an older version of openssl, that's what's by default in the path, and that's the one you'll see (try which openssl to see which one gets picked up on your computer).

Homebrew installs [email protected] into /opt, which means you need to explicitly call it from there, and if you want to link other programs you compile to it, you need to set library paths etc.

Same for libressl.

I just want to use the latest openssl (or libressl).

The binary, I assume? One way to do that is to add your own $HOME/bin directory in front of your PATH (something I recommend anyway) in your shell, and make a shell script openssl in there that calls the version you want to use. When you do it that way, you won't mess up anything else.

may that imply that some other software depending on that specific version will no longer work?

Exactly. That's why you shouldn't replace the one that comes with MacOS, for example.

Can I instruct software depending older openssl versions to use a specific path for that older version,

If you do it the other way round (have a different PATH in your terminal), then anything you call from outside the terminal isn't going to break, for starters.


To answer questions in the comment:

  1. I have a ~/.profile with

    export PATH=$HOME/bin:$PATH
    

    in it.

  2. See this answer. That is: Create a file ~/bin/openssl with

    #!/bin/bash
    exec /usr/local/opt/libressl/bin/openssl "$@"
    

in it. Don't forget to chmod a+x ~/bin/openssl.

Environment will get passed, redirections will apply. Wildcards will be resolved on first call, but passed on in resolved form.

🌐
Apple Community
discussions.apple.com › thread › 4183582
Revert to original openssl on mac - Apple Community
August 7, 2012 - My (original, Mac OS 10.7.4) openssl was installed in /usr/bin, you can trace it by opening the terminal and executing "which openssl".