Last active
March 14, 2023 11:41
-
-
Save meanevo/e90ba63a719ed444a701a79b2affcc88 to your computer and use it in GitHub Desktop.
Compile OpenSSL 1.0.2* from source on CentOS 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your solution!