How To Install OpenSSL 3 on Ubuntu - HostnExtra (2024)

In this article, we’ll explain how to install OpenSSL 3 on Ubuntu 22.04. We'll install OpenSSL 3.0.8 version, we will keep updating the tutorial as new version get launched.

OpenSSL is a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. OpenSSL is a software library for applications that secure communications over computer networks against eavesdropping or need to identify the party at the other end.

OpenSSL is licensed under an Apache-style license, which means that you are free to get and use it for commercial and non-commercial purposes subject to some simple license conditions. For a list of vulnerabilities, and the releases in which they were found and fixes, see our Vulnerabilities page.

We have covered installation OpenSSL 3.0.8.

Prerequisites

  • A Ubuntu 22.04 installed dedicated server or KVM VPS.
  • A root user access or normal user with sudo privileges.

Step 1 – Keep the server up to date

Always keep the server up to date the security purpose.

dnf update -y

Step 2 - Install Dependencies

We need to install a development tool and few dependencies to install OpenSSL.

apt install build-essential zlib1g-dev -y

Step 3 - Download and Extract Source File

We will download the latest stable version is the 3.0 series. This is also our Long Term Support (LTS) version, supported until 7th September 2026. Here is the official source link.

Change current working directory to /usr/local/src/ using follow command:

Download OpenSSL 3.0.8 using wget command. If wget command is unavailable in your server, install it using this command dnf install wget -y.

wget https://www.openssl.org/source/openssl-3.0.8.tar.gz

Now, extract the tar file.

tar xzvf openssl-3.0.8.tar.gz

Step 4 - Configure and Build

Navigate to the extracted directory and configure, build, test and install OpenSSL in the default location /usr/local/ssl.

cd openssl-3.0.8

Configure it with PATH.

./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib

Output

Configuring OpenSSL version 3.0.8 for target linux-x86_64Using os-specific seed configurationCreated configdata.pmRunning configdata.pmCreated Makefile.inCreated MakefileCreated include/openssl/configuration.h************************************************************************* ****** 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 configdata.pm --dump ****** ****** (If you are new to OpenSSL, you might want to consult the ****** 'Troubleshooting' section in the INSTALL.md file first) ****** ************************************************************************* 

Now, build

make
make test
make install

Step 5 - Configure it shared libraries.

Once we have successfully installed OpenSSL, configure it shared libraries.

Naviagate to the /etc/ld.so.conf.d directory and create a configuration file.

cd /etc/ld.so.conf.d/
vi openssl-3.0.8.conf

Add the following path in the config file.

/usr/local/ssl/lib64

Save and exit. Reload the dynamic link

ldconfig -v

Step 6 - Configure OpenSSL Binary

Now, we are going to insert the binary of our new version of OpenSSL /usr/local/ssl/bin/openssl and replace the default openssl file.

First, take a backup of existed openssl file.

mv /bin/openssl /bin/openssl.backup

Create new environment files for OpenSSL.

vi /etc/profile.d/openssl.sh

Add the following lines.

OPENSSL_PATH="/usr/local/ssl/bin"export OPENSSL_PATHPATH=$PATH:$OPENSSL_PATHexport PATH 

Save & exit. Make the newly created file executable.

chmod +x /etc/profile.d/openssl.sh

Reload the new OpenSSL environment file and check the default PATH

source /etc/profile.d/openssl.sh
echo $PATH

Now, let’s verify the installation and version of the OpenSSL.

which openssl
openssl version -a

Output will be similar like:

OpenSSL 3.0.8 7 Feb 2023 (Library: OpenSSL 3.0.8 7 Feb 2023)built on: Sat Mar 4 18:28:32 2023 UTCplatform: linux-x86_64options: bn(64,64)compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DZLIB -DNDEBUGOPENSSLDIR: "/usr/local/ssl"ENGINESDIR: "/usr/local/ssl/lib64/engines-3"MODULESDIR: "/usr/local/ssl/lib64/ossl-modules"Seeding source: os-specificCPUINFO: OPENSSL_ia32cap=0xdefa220b478bffff:0x842421 

We have seen, how to install OpenSSL 3 on Ubuntu 22.04. Here is the OpenSSL official manual guide.

How To Install OpenSSL 3 on Ubuntu - HostnExtra (2024)

FAQs

How To Install OpenSSL 3 on Ubuntu - HostnExtra? ›

In most Linux distributions, OpenSSL can be installed using the command, sudo apt-get install openssl or sudo yum install openssl . You can verify that OpenSSL is properly added with the command, openssl version . This command will install OpenSSL on your system.

How to install OpenSSL with specific version in Ubuntu? ›

Ubuntu 20.04 LTS
  1. sudo apt-get update && sudo apt-get upgrade. sudo apt install build-essential checkinstall zlib1g-dev -y.
  2. cd /usr/local/src/ wget https://www. openssl. org/source/openssl-1.1.1k. tar. ...
  3. cd /etc/ld. so. conf. d/ ...
  4. mv /usr/bin/c_rehash /usr/bin/c_rehash. BEKUP. mv /usr/bin/openssl /usr/bin/openssl. BEKUP.

How to install OpenSSL command on Ubuntu? ›

Method 1: Using apt Package Manager (Repository)
  1. Open the Terminal by searching for “Terminal” in the application menu or by pressing Ctrl + Alt + T.
  2. Type or copy-paste the following commands into the Terminal: sudo apt update. sudo apt install openssl.
May 29, 2024

What is the latest version of OpenSSL for Ubuntu? ›

Upstream connections
The Oracular Oriole (active development) OpenSSL trunk series
3.3.1-2ubuntu1release (main)2024-08-24
3.0.2-0ubuntu1release (main)2022-04-01
Fetching package details ...
The Focal Fossa (supported) OpenSSL trunk series
35 more rows

How do I manually install OpenSSL in Linux? ›

In most Linux distributions, OpenSSL can be installed using the command, sudo apt-get install openssl or sudo yum install openssl . You can verify that OpenSSL is properly added with the command, openssl version . This command will install OpenSSL on your system.

How to install OpenSSL 3.0 in Ubuntu? ›

In Debian 12 and Ubuntu 22.04 or newer OpenSSL 3 is available from the official package archive.
  1. sudo apt install openssl.
  2. sudo dnf install openssl.
  3. sudo zypper install openssl-3.

How do I upgrade OpenSSL to a specific version? ›

Upgrade Process:

Package Manager (Linux/BSD): If OpenSSL was installed via a package manager (e.g., apt, yum, pkg), this is the recommended method to upgrade. Use commands like sudo apt-get update && sudo apt-get upgrade openssl (for Debian/Ubuntu) or sudo yum update openssl (for CentOS/RHEL).

Where is the OpenSSL config file in Ubuntu? ›

The OpenSSL configuration file is located at /etc/ssl/openssl. cnf and is used both by the library itself and the command-line tools included in the package.

How to check if OpenSSL is installed? ›

In the Command Prompt, type the command Openssl version and press Enter. If OpenSSL is installed correctly, this command will display the version of OpenSSL currently installed on your system, like OpenSSL 1.1. 1g 21 Apr 2020.

What is the latest stable version of OpenSSL? ›

OpenSSL
ReleaseReleasedLatest
3.0 ( LTS )3 years ago (07 Sep 2021)3.0.15 (03 Sep 2024)
1.1.1 ( LTS )6 years ago (11 Sep 2018)1.1.1w (12 Sep 2023)
1.1.08 years ago (25 Aug 2016)1.1.0l (10 Sep 2019)
1.0.2 ( LTS )9 years ago (22 Jan 2015)1.0.2u (20 Dec 2019)
3 more rows
Sep 4, 2024

How to install OpenSSL step by step? ›

Install OpenSSL Windows with Pre-compiled Binaries

Download the Installer: Click on the link to download the OpenSSL installer. Run the Installer: Execute the downloaded file and follow the installation wizard. Make sure to select the option to add OpenSSL to your system PATH if you want easy command-line access.

What is the OpenSSL command in Linux? ›

OpenSSL is an open-source command line tool that is commonly used to generate private keys, create CSRs, install your SSL/TLS certificate, and identify certificate information.

How to update OpenSSL version in Linux? ›

Please find the below steps to update openssl on your server:
  1. Check your openssl version. # openssl version. ...
  2. Download the latest version of openssl from: http://www.openssl.org/source/ ...
  3. Extract openssl-1.0.1g.tar.gz. Go to openssl-1.0.1g directory. ...
  4. Done.
  5. Check the if you you have the latest version.

How to install specific version in Ubuntu? ›

You can use apt-get to install a specific version of the package a long as it is in an archive that apt knows about. From the apt-get manpage: A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select.

How to install openssl_1_1_1? ›

On a computer with internet access, browse to https://openssl.org/source/.
  1. Download and unpackage the current OpenSSL 1.1. ...
  2. Browse to the unpacked source distribution directory, and run one of the following commands. ...
  3. Depending on your choice in step one, do one of the following. ...
  4. Run the command ldconfig .

How to install specific version of go in Ubuntu? ›

Run 'go<version> download' to install to <home>/sdk/go<version> . The following code (from internal/version/version.go), formats the command to execute, based on the go version we like to execute. It renders the environment with GOROOT – set to the correct path (and also adds it to the PATH ).

How to change OpenSSL version in Linux? ›

Please find the below steps to update openssl on your server:
  1. Check your openssl version. # openssl version. ...
  2. Download the latest version of openssl from: http://www.openssl.org/source/ ...
  3. Extract openssl-1.0.1g.tar.gz. Go to openssl-1.0.1g directory. ...
  4. Done.
  5. Check the if you you have the latest version.

Top Articles
PM Scheduling Basics | Project Insight
Binance Founder Changpeng Zhao Sentenced To 4 Months In Prison
Netronline Taxes
Mountain Dew Bennington Pontoon
Uihc Family Medicine
Wizard Build Season 28
9192464227
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Bhad Bhabie Shares Footage Of Her Child's Father Beating Her Up, Wants Him To 'Get Help'
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Buckaroo Blog
Weather In Moon Township 10 Days
Rapv Springfield Ma
Jvid Rina Sauce
Moparts Com Forum
ᐅ Bosch Aero Twin A 863 S Scheibenwischer
Leccion 4 Lesson Test
Webcentral Cuny
Bekijk ons gevarieerde aanbod occasions in Oss.
Timeforce Choctaw
67-72 Chevy Truck Parts Craigslist
Apartments / Housing For Rent near Lake Placid, FL - craigslist
Manuela Qm Only
Bay Area Craigslist Cars For Sale By Owner
A Christmas Horse - Alison Senxation
Is Henry Dicarlo Leaving Ktla
Usa Massage Reviews
Harrison 911 Cad Log
27 Fantastic Things to do in Lynchburg, Virginia - Happy To Be Virginia
Spirited Showtimes Near Marcus Twin Creek Cinema
Wisconsin Volleyball Team Leaked Uncovered
Grand Teton Pellet Stove Control Board
Composite Function Calculator + Online Solver With Free Steps
One Credit Songs On Touchtunes 2022
Tamil Play.com
Spinning Gold Showtimes Near Emagine Birch Run
Hermann Memorial Urgent Care Near Me
Why The Boogeyman Is Rated PG-13
Final Exam Schedule Liberty University
Henry County Illuminate
How To Get Soul Reaper Knife In Critical Legends
Smith And Wesson Nra Instructor Discount
ENDOCRINOLOGY-PSR in Lewes, DE for Beebe Healthcare
Myanswers Com Abc Resources
Grand Park Baseball Tournaments
10 Best Tips To Implement Successful App Store Optimization in 2024
Cvs Minute Clinic Women's Services
Santa Ana Immigration Court Webex
Aaca Not Mine
Minecraft Enchantment Calculator - calculattor.com
Syrie Funeral Home Obituary
Koniec veľkorysých plánov. Prestížna LEAF Academy mení adresu, masívny kampus nepostaví
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 5934

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.