Share your love
Install OpenSSL 3 on Rocky Linux 8 with Easy Steps

This guide intends to teach you to Install OpenSSL 3 on Rocky Linux 8. OpenSSL is an open-source software library that provides cryptographic protocols and security algorithms for implementing secure communications over computer networks. It can be used to protect data from eavesdropping, and encryption of email messages, payment transactions other sensitive information. OpenSSL supports a wide range of cryptographic functions, including digital signature, key exchange, and public-key encryption schemes. It is widely used for web-based applications and can be integrated into a variety of software programs.
The OpenSSL library is available on Linux, macOS, and Windows, making it a popular choice amongst developers who need secure communication protocols.
The version of OpenSSL available on Rocky Linux 8 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 Rocky Linux 8.
Table of Contents
Steps To Install OpenSSL 3 on Rocky Linux 8
To complete this guide for Rocky Linux OpenSSL 3, 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 Rocky Linux 8.
Set up OpenSSL 3 on Rocky Linux 8
First, you need to update your local package index with the command below:
sudo dnf update -y
Then, use the following command to install the Development Tools:
sudo dnf groupinstall "Development Tools" -y
Also, install the following packages:
sudo dnf 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.1.0/openssl-3.1.0.tar.gz
Then, extract your downloaded file by using the command below:
sudo tar xvf openssl-3.1.0.tar.gz
Next, navigate to your OpenSSL directory:
cd openssl-3.1*/
Build and Install OpenSSL 3 on Rocky Linux 8
Now you can use the command below to configure OpenSSL:
./config

Next, use the following commands to build OpenSSL 3.1:
# 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 Rocky Linux 8 by checking its version:
openssl version

Conclusion
At this point, you have learned to Install OpenSSL 3 on Rocky Linux 8. OpenSSL can help you to protect data from eavesdropping, and encryption of email messages, payment transactions other sensitive information.
Hope you enjoy it. You may also like these articles too:
Install Apache Kafka on Rocky Linux 8
How To Install VirtualBox on Rocky Linux 8
Django Python Framework Rocky Linux 8
Sysdig Commands on Rocky Linux 8