-
-
Save zobayer1/165da3145033830ec8ef9fdc80b98295 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