Skip to content

Instantly share code, notes, and snippets.

@byronmansfield
Last active December 15, 2023 05:51
Show Gist options
  • Save byronmansfield/97d74d8b0d1ea28b48536020dbd6d53e to your computer and use it in GitHub Desktop.
Save byronmansfield/97d74d8b0d1ea28b48536020dbd6d53e 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-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
@hippietrail
Copy link

This didn't work for me on Ventura 13.1 / M1 MacBook Air:

../test/recipes/15-test_ec.t ....................... Dubious, test returned 1 (wstat 256, 0x100)
../test/recipes/80-test_cms.t ...................... Dubious, test returned 5 (wstat 1280, 0x500)
../test/recipes/80-test_ssl_new.t .................. Dubious, test returned 1 (wstat 256, 0x100)
Test Summary Report
-------------------
../test/recipes/15-test_ec.t                     (Wstat: 256 Tests: 5 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
../test/recipes/80-test_cms.t                    (Wstat: 1280 Tests: 6 Failed: 5)
  Failed tests:  1-5
  Non-zero exit status: 5
../test/recipes/80-test_ssl_new.t                (Wstat: 256 Tests: 29 Failed: 1)
  Failed test:  12
  Non-zero exit status: 1
Files=155, Tests=1450, 154 wallclock secs ( 0.70 usr  0.27 sys + 53.36 cusr 20.21 csys = 74.54 CPU)
Result: FAIL
make[1]: *** [_tests] Error 1
make: *** [tests] Error 2

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