Easy Steps To Install OpenSSL 3 on AlmaLinux 8

In this guide, we want to teach you to Install OpenSSL 3 on AlmaLinux 8. OpenSSL is an open-source cryptography library widely used by applications, operating systems, and websites to secure communications over the internet using SSL (Secure Sockets Layer) and TLS (Transport Layer Security). OpenSSL has been around since 2012, with version 3 released in September 2021, and is one of the most widely used open-source libraries worldwide.

The version of OpenSSL available on AlmaLinux 8 is a bit old and some applications will give errors when compiling if it requires a newer release. So in this guide from the Orcacore website, we want to show you how to install the latest release of OpenSSL on AlmaLinux 8.

Steps To Install OpenSSL 3 on AlmaLinux 8

To complete this guide for AlmaLinux 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 AlmaLinux 8.

AlmaLinux OpenSSL 3 Setup

First, you need to update your local package index with the command below:

sudo dnf update -y

Install Development Tools and Required Packages

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:

sudo cd openssl-3.1*/

Build and Install OpenSSL 3

Now you can use the command below to configure OpenSSL:

sudo ./config
Build and Install OpenSSL 3 AlmaLinux 8

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 AlmaLinux 8 by checking its version:

openssl version
AlmaLinux OpenSSL 3

Conclusion

At this point, you have learned to Install OpenSSL 3 on AlmaLinux 8. OpenSSL 3 makes sure your system has the latest security features and encryption capabilities provided by OpenSSL.

Hope you enjoy it. You may also like these articles too:

How To Install Wireshark on AlmaLinux 8

Install and Configure Samba Share on Rocky Linux 8

Install directadmin trial AlmaLinux 8

Installing aaPanel on Linux server Almalinux 8

Setup varnish with nginx AlmaLinux 8

Squid Proxy Server on AlmaLinux 8

Brotli Compression Setup AlmaLinux 8

Install Node.js on AlmaLinux 8

WordPress Setup on AlmaLinux 8

Share your love

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!