How 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 we want to show you to install the latest release of OpenSSL on AlmaLinux 8.

Steps To Install OpenSSL 3 on AlmaLinux 8

To complete this guide, 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.

Set up OpenSSL 3 on AlmaLinux 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

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 on AlmaLinux 8

Now you can use the command below to configure OpenSSL:

sudo ./config
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the file first)      ***
***                                                                ***

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/<<EOF
export PATH=/usr/local/openssl/bin:\$PATH
export LD_LIBRARY_PATH=/usr/local/openssl/lib:\$LD_LIBRARY_PATH

Reload shell environment:

source /etc/profile.d/

Verify your OpenSSL installation on AlmaLinux 8 by checking its version:

openssl version
OpenSSL 3.1.0 14 Mar 2023 (Library: OpenSSL 3.1.0 14 Mar 2023)


At this point, you have learned to Install OpenSSL 3 on AlmaLinux 8.

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

How To Install Wireshark on AlmaLinux 8

Install and Configure Samba Share on Rocky Linux 8

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!