Install OpenSSL 3 from Source (2024)

OpenSSL is an open-source cryptography library useful to implement TLS and SSL protocols. TLS and SSL implementation is used to provide confidence on the sender of a packet and the packet integrity. It is considered mandatory on websites, especially websites where users store sensitive information. Search engines like Google prioritize secured websites in search results.

To establish an encrypted connection, a client connects to the server requesting a secure connection. The server then sends the client a digital certificate which includes information on the server including the public key and the certificate authority. The client validates the certificate and starts an encrypted session with the server.

This tutorial explains how to install OpenSSL from source in Linux systems. At the end, Debian based Linux distribution users can find instructions on how to install OpenSSL from repositories.

Red Hat Linux users may find it useful to install OpenSSL from source to add features left out since Red Hat replaced OpenSSL with a pre-installed limited version, according to the OpenSSL website.

NOTE: Red Hat users must not overwrite the current OpenSSL installation located in /usr/bin.

How to install OpenSSL from Source

Before starting, make sure you remove the old OpenSSL version by running the following command in your terminal:

$ sudo apt remove openssl

Install OpenSSL 3 from Source (1)

You can download OpenSSL sources from https://www.openssl.org/source/. Make sure you download the correct version. For demonstration, I will download the current version (3) using wget as shown in the example below:

$ wget https://www.openssl.org/source/openssl-3.0.0-alpha17.tar.gz

Install OpenSSL 3 from Source (2)

Extract the downloaded tar.gz by running the following command:

Install OpenSSL 3 from Source (3)

Enter the extracted directory with the cd (Change directory) command and give the configuration file execution permissions as shown in the screenshot below:

$ cd openssl-3.0.0-alpha17
$ chmod +x ./config

Install OpenSSL 3 from Source (4)

Run the configuration script as shown below (Pay attention to the capital c).

$ ./Configure

Install OpenSSL 3 from Source (5)

Now you can start compiling Openssl using the script make:

$ make

Install OpenSSL 3 from Source (6)

Run make test as shown below:

$ make test

Install OpenSSL 3 from Source (7)

And finally run make install:

$ make install

Install OpenSSL 3 from Source (8)

Update links and caches:

$ sudo ldconfig

Install OpenSSL 3 from Source (9)

In my case, it was installed under /usr/local/bin/openssl. So, I linked it to /usr/bin. If that’s your case too, run a similar command according to your situation. Otherwise, you can check if OpenSSL is properly installed by executing openssl version as shown in the screenshot below.

$ ln -s /usr/local/bin/openssl /usr/bin/

$ openssl version

Install OpenSSL 3 from Source (10)

As you can see, OpenSSL was correctly installed from source.

$ openssl version

Install OpenSSL 3 from Source (11)

How to Install OpenSSL in Debian-based Linux Distributions

Installing OpenSSL in Debian-based Linux distributions is easier using apt as shown below:

$ sudo apt update

$ sudo apt install openssl

Install OpenSSL 3 from Source (12)

OpenSSL is installed.

Cryptographic Algorithms Supported by OpenSSL:

OpenSSL Licensing:

OpenSSL is licensed under OpenSSL (Apache License 1.0) and SSLeay permissive licenses. Anyone can use or redistribute OpenSSL both for personal and commercial use. OpenSSL licensing is not compatible with GNU GPL license. This fact encouraged the development of GnuTLS.

OpenSSL Alternatives:

LibreSSL:

It was forked from OpenSSL aiming to clean the code and improve security. Known for being more secure, some OpenSSL vulnerabilities didn’t affect LibreSSL. LibreSSL was developed by an OpenBSD developer and replaced OpenSSL for that OS which was considered the most secure.

Let’s Encrypt:

Another open-source option. It is currently the largest certificate issuer in the world. It is the easiest alternative to install and configure with a process fully automated.

GnuTLS:

GnuTLS is used by software like GNOME, OpenLDAP, CenterIM, Exim, Mutt, Slrn, Lynx, CUPS, etc. This cryptography library was developed by the Free Software Foundation, and also allows the implementation of SSL, TLS and DTLS. It was developed because of the incompatibility of OpenSSL with GNU GPL licenses.

Conclusion:

Installing OpenSSL from source is a 10 minute easy task. Any inexperienced user can do it by following the instructions above. However, benefits range from security to the ability to run TLS/SSL dependent applications like OAuth. Securing a website with TLS/SSL will improve the site before search engines which prioritize secured websites (https) over insecure sites (http) in search results.

OpenSSL supports Unix-like operating systems (including Linux, BSD, and macOS) and Microsoft Windows.

OpenSSL’s advantages over competitors include sources availability, friendly licensing terms and platform independence. However, historical bugs have exposed important vulnerabilities like plaintext recovery attack, Heartbleed, CCS injection, key recovery attack, OCSP stapling, etc. Security incidents breaking OpenSSL security encouraged the development of the alternative LibreSSL, included in OpenBSD (the safest OS).

I hope this OpenSSL tutorial was useful. Keep following Linux Hint for more Linux tips and tutorials.

Install OpenSSL 3 from Source (2024)

FAQs

How to install OpenSSL 3 in Linux? ›

How To Install OpenSSL 3 on Ubuntu
  1. Step 1 – Keep the server up to date. Always keep the server up to date the security purpose. ...
  2. Step 2 - Install Dependencies. ...
  3. Step 3 - Download and Extract Source File. ...
  4. Step 4 - Configure and Build. ...
  5. Step 5 - Configure it shared libraries. ...
  6. Step 6 - Configure OpenSSL Binary.
Feb 2, 2024

How to install OpenSSL 3.2 0? ›

Installing OpenSSL

You can download the Windows installers found in the "Download OpenSSL" section above. Installation is straightforward. OpenSSL is installed into the following file system locations. These locations are specified during the build and follow OpenSSL's conventions.

How to install OpenSSL 3 on Windows 10? ›

Step-by-Step Guide to Install OpenSSL on Windows
  1. Download OpenSSL. ...
  2. Run the Installer. ...
  3. Installation Wizard. ...
  4. Copy DLLs to the Windows System Directory. ...
  5. Customize Installation (Optional) ...
  6. Complete the Installation. ...
  7. Set Environment Variables. ...
  8. Open Command Prompt.
Jan 31, 2024

How to install OpenSSL from source code? ›

How to Install OpenSSL from source code on Ubuntu 16.04
  1. cd /usr/local/src/ sudo wget https://www.openssl.org/source/openssl-1.1.1c.tar.gz. ...
  2. sudo apt install build-essential checkinstall zlib1g-dev -y. ...
  3. sudo tar -xf openssl-1.1.1c.tar.gz. ...
  4. cd openssl-1.1.1c.
Jan 4, 2021

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.

What is OpenSSL 3? ›

OpenSSL 3.0 comes with 5 different providers as standard. Over time third parties may distribute additional providers that can be plugged into OpenSSL. All algorithm implementations available via providers are accessed through the "high level" APIs (for example those functions prefixed with EVP ).

How to install OpenSSL using command prompt? ›

Open an Elevated Command Prompt: Right-click on the Command Prompt and select "Run as administrator". Install OpenSSL: Enter the command choco install openssl and press Enter. Chocolatey will download and install OpenSSL for you.

Where is OpenSSL installed in Linux? ›

Look for the openssl libraries and binaries in the expected install locations:
  1. /usr/lib/x86_64-linux-gnu/ – shared libraries.
  2. /usr/local/lib – static libraries if built from source.
  3. /usr/bin or /usr/local/bin – executables.

How to install OpenSSL using PowerShell? ›

To install for the current user, start a PowerShell session and run: PS> Install-Module -Name OpenSSL -Scope CurrentUser. To install for all users, start a PowerShell session, with admin privileges, and run: PS> Install-Module -Name OpenSSL -Scope AllUsers.

Is OpenSSL 3 backwards compatible? ›

OpenSSL 3.0 constitutes a major version and is NOT backwards compatible.

What is the current OpenSSL version? ›

OpenSSL
Stable releaseStable 3.3.0 / 9 April 2024
Repositorygit.openssl.org/openssl.git
Written inC, Assembly, Perl
TypeCryptography library
License3.0 and later: Apache-2.0 1.x and earlier: OpenSSL
7 more rows

How to install OpenSSL without sudo? ›

Installing OpenSSL
  1. Log into your server via SSH.
  2. View the checksum to confirm the version you downloaded is safe to use. ...
  3. Decompress this file. ...
  4. Change into the new openssl directory. ...
  5. Configure openssl: ...
  6. Run make. ...
  7. Run make install. ...
  8. Change back to your home directory.
Oct 27, 2023

How to install package from source code? ›

Here are the typical steps for building from source with make:
  1. Download and extract the source code package.
  2. Run ./configure, with options if necessary.
  3. Execute make to build the target files.
  4. Execute sudo make install to install the program.
Mar 18, 2024

Where is OpenSSL installed by default? ›

OpenSSL for Windows has now been installed and can be found as OpenSSL.exe in C:\OpenSSL-Win32\bin\. Always open the program as Administrator.

How to install python3 with OpenSSL? ›

To install Python 3.9 with OpenSSL 1.1 on CentOS 7, you can follow these steps:
  1. Update the system: sudo yum update.
  2. Install required dependencies: sudo yum install -y epel-release. ...
  3. Download and compile OpenSSL 1.1: ...
  4. Download and install Python 3.9: ...
  5. Verify the installation: ...
  6. Update alternatives (optional but recommended):
Dec 17, 2023

How to install SSL in Linux terminal? ›

Follow the steps below to complete the Linux SSL installation:
  1. Step 1: Create the yourdomain.crt file. ...
  2. Step 2: Copy yourdomain. ...
  3. Step 3: Install your SSL certificate. ...
  4. Step 4: Save the httpd.
Jan 10, 2024

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.

What is the command to install OpenSSL? ›

Install Windows OpenSSL with Package Managers

Open an Elevated Command Prompt: Right-click on the Command Prompt and select "Run as administrator". Install OpenSSL: Enter the command choco install openssl and press Enter. Chocolatey will download and install OpenSSL for you.

Top Articles
Become a Professional Trader
Investing & the Fed: How Will my Investments be Impacted?
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Terence Hammes MD

Last Updated:

Views: 6215

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.