Share your love
Install OpenSSL 3 on Centos 7: Secure Communication

In this guide, we want to teach you to Install OpenSSL 3 on Centos 7. OpenSSL is an open-source command line tool that is commonly used to generate private keys, create CSRs, install your SSL/TLS certificate, and identify certificate information. Operating systems and many applications use OpenSSL to provide secure communication over the internet.
The version of OpenSSL available on Centos 7 is a bit old and some applications will give errors when compiling if it requires a newer release. So in this guide on the Orcacore website, we want to show you how to install the latest release of OpenSSL on Centos 7.
Table of Contents
Steps To Install OpenSSL 3 on Centos 7
To complete this guide on OpenSSL 3 Centos 7, you must log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide on Initial Server Setup with Centos 7.
Set up OpenSSL 3 Centos 7
First, you need to update your local package index with the command below:
sudo yum update -y
Then, use the following command to install the Development Tools:
sudo yum groupinstall "Development Tools" -y
Also, install the following packages:
sudo yum install perl-IPC-Cmd perl-Test-Simple -y
Download OpenSSL From Source
At this point, you need to visit the GitHub OpenSSL Releases page and get the latest release by using the wget command:
sudo wget https://github.com/openssl/openssl/releases/download/openssl-3.0.8/openssl-3.0.8.tar.gz
Then, extract your downloaded file by using the command below:
sudo tar xvf openssl-3.0.8.tar.gz
Next, navigate to your OpenSSL directory:
cd openssl-3.0*/
Build and Install OpenSSL 3 on Centos 7
Now you can use the command below to configure OpenSSL:
./config

Next, use the following commands to build OpenSSL 3.0:
# make
# make test
# make install
Update links and caches by using the command below:
sudo ldconfig
Then, update your system-wide OpenSSL configuration:
sudo tee /etc/profile.d/openssl.sh<<EOF
export PATH=/usr/local/openssl/bin:\$PATH
export LD_LIBRARY_PATH=/usr/local/openssl/lib:\$LD_LIBRARY_PATH
EOF
Reload shell environment:
source /etc/profile.d/openssl.sh
Verify your OpenSSL installation on Centos 7 by checking its version:
openssl version

Conclusion
At this point, you have learned to Install OpenSSL 3.0 on Centos 7. OpenSSL helps you to generate private keys, create CSRs, install your SSL/TLS certificate, and identify certificate information. Also, it helps you to have secure communication over the Internet.
Hope you enjoy it. You may also like these articles:
How To Install OpenJDK 17 on Centos 7
Installing Flatpak Package Manager Centos 7