Skip to content

Instantly share code, notes, and snippets.

@meanevo
Last active March 14, 2023 11:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save meanevo/e90ba63a719ed444a701a79b2affcc88 to your computer and use it in GitHub Desktop.
Save meanevo/e90ba63a719ed444a701a79b2affcc88 to your computer and use it in GitHub Desktop.
Compile OpenSSL 1.0.2* from source on CentOS 7
# Make sure you have these installed
yum install -y make gcc perl pcre-devel zlib-devel
# Download/Extract source
wget -O /tmp/openssl.tgz https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
tar -zxf /tmp/openssl.tgz -C /tmp
cd /tmp/openssl-*
# Optional: Patch chacha20
# https://github.com/cloudflare/sslconfig/tree/master/patches
wget https://raw.githubusercontent.com/cloudflare/sslconfig/master/patches/openssl__chacha20_poly1305_draft_and_rfc_ossl102j.patch
patch -p1 < openssl__chacha20_poly1305_draft_and_rfc_ossl102j.patch
# Compile/Install OpenSSL
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
make depend
make && make install
@ZhengQiushi
Copy link

Thanks for your solution!

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