IMO the best way to install openssl on MacOS is to use Homebrew. This will not only install openssl, but will also allow it to be upgraded in the future.

brew install openssl

If you want to make the Homebrew version the default (rather than the LibreSSL that comes with MacOS), you will also need put the Hombrew-installed openssl on your path ahead of the MacOS version. While it is possible to accomplish this by putting /opt/homebrew/bin on your PATH ahead of /usr/bin, I strongly discourage this, because it makes you vulnerable to unintentionally installing a malicious Homebrew package named something like ls that overrides your default ls with malicious code. Instead, my personal preference is to have a user-level directory where I maintain a small set of binaries that override the defaults.

# Create a user-level bin directory, if it doesn't already exist.
mkdir -p ~/bin

# Create a symlink to the Homebrew openssl, if such a symlink does not already exist
ln -fs /opt/homebrew/bin/openssl ~/bin/openssl

Then, put ~/bin on your PATH, ahead of /usr/bin. This part depends on which shell you are using. For bash, you can add this to your ~/.bash_profile.

# User-level binaries, manually added
PATH="${HOME}/bin:${PATH}"
Answer from Cameron Hudson on Stack Exchange
🌐
MacPorts
ports.macports.org › port › openssl
Install openssl on macOS with MacPorts
To install openssl, run the following command in macOS terminal (Applications->Utilities->Terminal)
Top answer
1 of 3
3

IMO the best way to install openssl on MacOS is to use Homebrew. This will not only install openssl, but will also allow it to be upgraded in the future.

brew install openssl

If you want to make the Homebrew version the default (rather than the LibreSSL that comes with MacOS), you will also need put the Hombrew-installed openssl on your path ahead of the MacOS version. While it is possible to accomplish this by putting /opt/homebrew/bin on your PATH ahead of /usr/bin, I strongly discourage this, because it makes you vulnerable to unintentionally installing a malicious Homebrew package named something like ls that overrides your default ls with malicious code. Instead, my personal preference is to have a user-level directory where I maintain a small set of binaries that override the defaults.

# Create a user-level bin directory, if it doesn't already exist.
mkdir -p ~/bin

# Create a symlink to the Homebrew openssl, if such a symlink does not already exist
ln -fs /opt/homebrew/bin/openssl ~/bin/openssl

Then, put ~/bin on your PATH, ahead of /usr/bin. This part depends on which shell you are using. For bash, you can add this to your ~/.bash_profile.

# User-level binaries, manually added
PATH="${HOME}/bin:${PATH}"
2 of 3
2

The first option is the simplest one: do nothing. macOS has shipped with OpenSSL preinstalled since 2000.

You can download a binary distribution of OpenSSL. The OpenSSL project does not itself publish binary releases, but they maintain a list of third-party resources that publish OpenSSL binaries.

You can install it using MacPorts.

You can install it using Homebrew.

You can compile it yourself. You already downloaded the source code, so all you need is to follow the instructions in the INSTALL.md file you are showing in your screenshot. I assume that, since you chose to use an inofficial development version, you may run into some bugs.

Discussions

macos - How to install latest version of openssl Mac OS X El Capitan - Stack Overflow
THis will severely slow down your terminal. 2021-08-09T20:49:19.967Z+00:00 ... Upgrade to Homebrew 1.0.x, which was released late in September 2016. Specific changes were made in the way openssl is linked. The project is on a more robust release schedule now that it's hit 1.0. ... You should fix any issues raised by brew doctor before proceeding. ... Note: Upgrading homebrew will update all your installed ... More on stackoverflow.com
🌐 stackoverflow.com
install openssl - Mac
I was able to get to work on MacBook Pro but need to install xcode for make command on MacMini to try and repeat the process. Don't know if there is an easier way to get command line tools though. Also found this link useful: http://mac-dev-env.patrickbougie.com/openssl/. More on discussions.apple.com
🌐 discussions.apple.com
June 23, 2014
security - How to upgrade OpenSSL in OS X? - Ask Different
To fix the terminal window I was working in, I needed to do a: hash -r ... Better than creating a symlink at /usr/bin/openssl, one can create the link at /usr/local/bin/openssl. That should precede /usr/bin on your $PATH and bypass any problems arising from "System Integrity Protection" in newer versions of OS X. ... That's funny, having both macports and brew both install ... More on apple.stackexchange.com
🌐 apple.stackexchange.com
April 8, 2014
Ruby 3.2.1 will not install on Mac Terminal
Use rbnev or asdf. If none of them works, try uninstalling all the installers and try afresh with brew install. More on reddit.com
🌐 r/rubyonrails
8
1
April 3, 2024
🌐
Macupdate
openssl.macupdate.com › security › encryption & decryption
Download OpenSSL for Mac | MacUpdate
To install the OpenSSL toolkit and library on your Mac, you must open the Terminal application, go to the OpenSSL source folder, and follow the instructions from the INSTALL file included in the archive.
🌐
GitHub
gist.github.com › byronmansfield › 97d74d8b0d1ea28b48536020dbd6d53e
Install OpenSSL from source Mac OS X · GitHub
Here is what worked for me: sudo make install MANDIR=/usr/local/openssl/share/man MANSUFFIX=ssl That completed fine.
🌐
Medium
yasar-yy.medium.com › installing-openssl-library-on-macos-catalina-6777a2e238a6
Installing OpenSSL library on macOS Catalina | by Yaşar Yücel Yeşilbağ | Medium
September 18, 2020 - Here is my journey of installing OpenSSL 1.1.1g on macOS Catalina (10.15.6) and making it reachable by my .Net Core apps. I tried to write complete and generalized instructions to be as applicable to more systems as possible. And I also avoided symbolic linking (ln -s) and install_name_tool, since for me those are last options. First, open a terminal, and see if OpenSSL is already installed:
🌐
Mac App Store
macappstore.org › home › install openssl on mac osx
Install openssl on Mac OSX - Mac App Store
June 12, 2022 - Mind you, as you type your password, ... echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile · Copy and paste the following command: brew install openssl......
Find elsewhere
🌐
Patrickbougie
mac-dev-env.patrickbougie.com › openssl
Mac Dev Env: OpenSSL
tar -xzvf openssl-VERSION.tar.gz cd openssl-VERSION · Configure, compile and install into /usr/local/mac-dev-env/openssl-VERSION.
🌐
MacPorts
ports.macports.org › port › openssl3
Install openssl3 on macOS with MacPorts
To install openssl3, run the following command in macOS terminal (Applications->Utilities->Terminal)
🌐
Franz Inc.
franz.com › support › openssl-mac.lhtml
Installing OpenSSL on macOS
The latest information on OpenSSL can be found in the installation guide.
🌐
FixMyCert
fixmycert.com › guides › openssl-installation
Install OpenSSL: Windows, Linux, macOS, Alpine
How to install OpenSSL on Windows, Linux, macOS, and Alpine. Check if OpenSSL is pre-installed, understand LibreSSL vs OpenSSL, with copy-paste commands.
🌐
David Wampamba
blog.davidofug.com › how-to-update-openssl-on-macos
How to update Openssl on MacOS
December 19, 2024 - Does your MacBook have an unsupported version of OpenSSL? In this small article, I’ll show you how you can install the supported version in simple steps in the terminal. Verify the installed version Uninstall the old version Install the new versio...
🌐
HPE Ezmeral
docs.ezmeral.hpe.com › datafabric-customer-managed › 80 › AdvancedInstallation › InstallingOpenSSL-for-mac-client.html
Installing OpenSSL for the Mac Client
OPENSSL_INSTALLED_LOCATION=`brew --prefix openssl@1.1` OPENSSL_LIBRARY_PATH=${OPENSSL_INSTALLED_LOCATION}/lib OPENSSL_PATH=${OPENSSL_INSTALLED_LOCATION}/bin export PATH=${OPENSSL_PATH}:${PATH} LD_LIBRARY_PATH=${OPENSSL_LIBRARY_PATH}:${LD_LIBRARY_PATH} Verify that the OpenSSL 1.1.1 binary is used. Issuing the following command should return Open SSL 1.1.1x: openssl version OpenSSL 1.1.1l 24 Aug 2021 If the openssl version command returns LibreSSL, your configuration settings are incorrect: ... /opt/mapr/server/verify_ossl Unable to load OpenSSL from specified locations.
🌐
Apple Community
discussions.apple.com › thread › 6406090
install openssl - Mac
June 23, 2014 - I was able to get to work on MacBook Pro but need to install xcode for make command on MacMini to try and repeat the process. Don't know if there is an easier way to get command line tools though. Also found this link useful: http://mac-dev-env.patrickbougie.com/openssl/.
🌐
SS64
ss64.com › mac › openssl.html
OPENSSL Command: Cryptography toolkit in macOS
$ openssl sha1 /Volumes/Install\ macOS\ Sequoia\ 15.7.4 /Install\ macOS\ Sequoia.app/Contents/SharedSupport/InstallESD.dmg SHA1(/Volumes/Install macOS Sequoia 15.7.4 /Install macOS Sequoia.app/Contents/SharedSupport/InstallESD.dmg)= 51df126965433187403987c9d74d95c26cba9266
🌐
Medium
medium.com › @rohitkumarkhatri › how-to-install-openssl-on-windows-macos-and-linux-a-beginners-guide-5c9add8ad9b3
How to Install OpenSSL on Windows, macOS, and Linux: A Beginner’s Guide | by Rohit Kumar | Medium
September 24, 2024 - It’s also a general-purpose cryptography library. Whether you’re a developer, a system administrator, or a security enthusiast, learning how to install OpenSSL can be incredibly useful. This guide will walk you through the steps for installing OpenSSL on Windows, macOS, and Linux.
🌐
Devolutions
blog.devolutions.net › home › how to manually install openssl on windows, linux, and macos
How to manually install OpenSSL on Windows, Linux, and macOS | Devolutions
September 11, 2020 - Learn how to manually install OpenSSL on Windows, Linux, and macOS with our detailed tutorial. Follow these steps to ensure secure connections and manage your SSL/TLS certificates efficiently.
🌐
Medium
medium.com › @timmykko › using-openssl-library-with-macos-sierra-7807cfd47892
Using the OpenSSL library with macOS Sierra | by Timothy Ko | Medium
January 14, 2018 - Working with C++ libraries on a Mac can be a pain and OpenSSL, a very popular one that’s used in many other libraries, led me scrambling around the web and going through different StackOverflow posts, Github issues, and blog posts/forums trying to figure out a way to do it without reinstalling everything. Usually, you would just install OpenSSL with Homebrew….