Skip to content

Instantly share code, notes, and snippets.

@coder4web
Last active May 24, 2020 09:54
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 coder4web/aecfd1eab51da48ac5445112a508b8a7 to your computer and use it in GitHub Desktop.
Save coder4web/aecfd1eab51da48ac5445112a508b8a7 to your computer and use it in GitHub Desktop.
OpenSSL 1.1.x build from sources
# https://github.com/openssl/openssl/blob/master/INSTALL.md
# https://github.com/openssl/openssl/blob/master/NOTES.UNIX
# https://www.openssl.org/docs/man1.1.1/
# reqs
#sudo yum groupinstall "Development Tools"
#sudo apt-get install build-essential cmake gcc libssl-dev
cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar -zxf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g
./config shared -d --prefix=/usr/local/ssl --openssldir=/usr/local/ssl
make
make test
make install
# TODO: LD_LIBRARY_PATH
mv /usr/bin/openssl /usr/bin/openssl.system
ln -s /usr/local/ssl/bin/openssl /usr/local/bin/openssl
echo '/usr/local/ssl/lib' >> /etc/ld.so.conf.d/ssl.conf && ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment