Skip to content

Instantly share code, notes, and snippets.

@calvinchengx
Created August 28, 2016 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinchengx/bdc405d6610f98c295d536ce59b7d6a6 to your computer and use it in GitHub Desktop.
Save calvinchengx/bdc405d6610f98c295d536ce59b7d6a6 to your computer and use it in GitHub Desktop.
sudo cd /usr/local && mkdir src
sudo chown -R `whoami`:admin src
cd src
# Download and install
curl --remote-name https://www.openssl.org/source/openssl-1.0.2h.tar.gz
tar -xzvf openssl-1.0.2h.tar.gz
cd openssl-1.0.2h
./configure darwin64-x86_64-cc --prefix=/usr/local/openssl-1.0.2h shared
make depend
make
make install
# Link
ln -s /usr/local/openssl-1.0.2h/bin/openssl /usr/local/bin
ln -s /usr/local/openssl-1.0.2h/bin/c_rehash /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment