Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevinbcarpenter/cf08fed74305993cf4609c1d48d33f68 to your computer and use it in GitHub Desktop.
Save kevinbcarpenter/cf08fed74305993cf4609c1d48d33f68 to your computer and use it in GitHub Desktop.
Install OpenSSL from source Mac OS X
# Install OpenSSL from source on Mac OS X
# download source code
git clone https://github.com/openssl/openssl.git
cd openssl
# configure, make, install
perl ./Configure --prefix=/usr/local --openssldir=/usr/local/openssl no-zlib darwin64-arm64-cc enable-ec_nistp_64_gcc_128
make
make test
sudo make install
# verify
openssl version # Shows libreSSL
which -a openssl # shows /usr/local/bin/openssl - new build.
/usr/local/bin/openssl version
# clean up
make clean
make distclean
cd ..
rm -fr openssl
@kevinbcarpenter
Copy link
Author

This worked to build OpenSSL from source for my Mac Book Pro (Apple Silicon). Note that it will install into /usr/local so that it doesn't affect the default install of LibreSSL. But that also means to keep that in mind when building things depending on OpenSSL.

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