Best Guide to Install OpenSSL 3 on Ubuntu 20.04

In this guide, you will learn to Install OpenSSL 3 on Ubuntu 20.04. OpenSSL is an all-around cryptography library offering an open-source TLS protocol application. It allows users to perform various SSL-related tasks, including CSR (Certificate Signing Request) private key generation, and SSL certificate installation.

The version of OpenSSL available on Ubuntu is a bit old (V1.1) 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 Ubuntu 20.04.

Steps To Install OpenSSL 3 on Ubuntu 20.04

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 Ubuntu 20.04.

1. Set up OpenSSL 3 Ubuntu 20.04

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

sudo apt update 

Then, use the command below to install the dependencies for OpenSSL 3:

sudo apt install build-essential checkinstall zlib1g-dev -y

2. 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*/

3. Build and Install OpenSSL 3 on Ubuntu 20.04

Now you can use the command below to configure OpenSSL 3:

./config
Install OpenSSL 3 on Ubuntu 20.04

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 Ubuntu 20.04 by checking its version:

openssl version
OpenSSL 3 Ubuntu 20.04

Conclusion

At this point, you have learned to Install OpenSSL 3 on Ubuntu 20.04. On Ubuntu 20.04, OpenSSL 3 provides updated features, enhanced security, and improved performance compared to older versions.

I hope you enjoy it. You may also like these articles:

Install Brotli Compression on Ubuntu 20.04

Install Ntopng on Ubuntu 20.04

Bitwarden Password Manager Ubuntu 20.04

Siege HTTP load testing tool Ubuntu 20.04

Nagios Monitoring Tool For Ubuntu 20.04

Apache Kafka Setup on Ubuntu 20.04

Share your love

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!