Share your love
Install OpenSSL 3 on Debian 11 – Easy Upgrade Steps
In this guide, we want to show you how to Install OpenSSL 3 on Debian 11. OpenSSL is an Open Source toolkit that implements the protocols and algorithms required by the SSL (Secure Socket Layer) and TLS (Transport Layer Security) protocols. The toolkit includes a general-purpose cryptographic API, and a full-featured command line utility, and uses an Apache-style license.
The version of OpenSSL available on Debian 11 is a bit old (V1.1) and some applications will give errors when compiling if it requires a newer release. So we want to show you how to install the latest release of OpenSSL on Debian 11 by using this guide provided by the Orcacore website.
Table of Contents
Steps To Install OpenSSL 3 on Debian 11
To Install OpenSSL 3 on Debian 11, 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 Debian 11.
Install dependencies for OpenSSL 3
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
Download Latest OpenSSL
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 Debian 11
Now you can use the command below to configure OpenSSL:
./config
Output
*********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** and include the output from the following command: ***
*** ***
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL.md file first) ***
*** ***
*********************************************************************
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 OpenSSL Installation on Debian 11
At this point, you have finished Upgrade and Install OpenSSL 3 on Debian 11. Now you can verify your OpenSSL installation by checking its version:
openssl version
Output
OpenSSL 3.0.8 7 Feb 2023 (Library: OpenSSL 3.0.8 7 Feb 2023)
Conclusion
At this point, you have learned to Install OpenSSL 3 or Upgrade OpenSSL on Debian 11. To install the latest OpenSSL on Debian 11, you must first install the required packages and download, build, and install the latest OpenSSL package on your server as shown in the above guide steps.
Hope you enjoy it. You may also like these articles:
How To Install OpenJDK 19 on Debian 11
Install Pritunl VPN Server and Client on Debian 11
Secure Alpine Linux Using CSF Firewall
LAMP Stack Installation on Ubuntu 24.04 for Beginners
FAQs
What is the default version of OpenSSL in Debian 11?
The version of OpenSSL available on Debian 11 is a bit old (V1.1).
How do I change or upgrade the OpenSSL version in Debian 11?
As you have seen in the above guide steps, you can easily download and install the latest OpenSSL from the source on Debian 11.
Where is OpenSSL installed in Debian?
The OpenSSL file is located under /usr/lib/ssl directory on Debian.
Where is OpenSSL 3 used?
OpenSSL 3 is used by most of the websites on the Internet to secure their traffic.