Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save clauRamirez/e10e4f4397c8e1ad83f33c5e52191be5 to your computer and use it in GitHub Desktop.
Save clauRamirez/e10e4f4397c8e1ad83f33c5e52191be5 to your computer and use it in GitHub Desktop.
Install OpenSSL from source Mac OS X
# 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-3.0.3.tar.gz
# expand tar
tar -xzvf openssl-3.0.3.tar.gz
cd openssl-3.0.3
# 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-3.0.3
rm openssl-3.0.3.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment