Forked from byronmansfield/install-openssl-from-src-mac
Last active
February 6, 2025 20:59
-
-
Save kevinbcarpenter/cf08fed74305993cf4609c1d48d33f68 to your computer and use it in GitHub Desktop.
Install OpenSSL from source Mac OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.