Last active
December 15, 2023 05:51
-
-
Save byronmansfield/97d74d8b0d1ea28b48536020dbd6d53e 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 | |
# prepare workspace | |
mkdir -p ~/code/build-from-src/ && cd $_ | |
# download source code | |
curl -LO https://www.openssl.org/source/openssl-1.1.1d.tar.gz | |
# expand tar | |
tar -xzvf openssl-1.1.1d.tar.gz | |
cd openssl-1.1.1d | |
# configure, make, install | |
perl ./Configure --prefix=/usr/local --openssldir=/usr/local/openssl no-ssl3 no-ssl3-method no-zlib darwin64-x86_64-cc enable-ec_nistp_64_gcc_128 | |
make | |
make test | |
sudo make install MANDIR=/usr/share/man MANSUFFIX=ssl | |
# verify | |
openssl version | |
which -a openssl | |
# clean up | |
make clean | |
make distclean | |
cd .. | |
rm -fr openssl-1.1.1d | |
rm openssl-1.1.1d.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This didn't work for me on Ventura 13.1 / M1 MacBook Air: