Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save discort/417bd105bf6c1503236016f5876ef2cf to your computer and use it in GitHub Desktop.
Save discort/417bd105bf6c1503236016f5876ef2cf to your computer and use it in GitHub Desktop.
How to install openssl 1.1.1 on CentOS 7

Install Python3.10 on Red Hat

# Install OpenSSL 1.1.1
cd /opt
curl https://ftp.openssl.org/source/old/1.1.1/openssl-1.1.1j.tar.gz --output openssl.tar.gz
tar xzf openssl.tar.gz
rm openssl.tar.gz
cd openssl-1.1.1j/
./config --prefix=/opt/openssl && make && make install
ln -s /opt/openssl/bin/openssl /usr/bin/openssl

# Install Python 3.10.6
cd /opt
wget https://www.python.org/ftp/python/3.10.8/Python-3.10.8.tgz
tar xzf Python-3.10.8.tgz
cd Python-3.10.8
./configure --with-openssl=/opt/openssl
make
make altinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment