Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How To Install or Update OpenSSL 3 on CentOS 8 Linux

July 16, 2024
in A, Blog, Linux
0
ADVERTISEMENT

Table of Contents

OpenSSL is a robust, widely-used toolkit that provides support for the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols, as well as a general-purpose cryptography library. Installing and maintaining the latest version of OpenSSL is essential for ensuring secure communication and data protection on your CentOS system.

                 ..                    root@centos8
               .PLTJ.                  ------------
              <><><><>                 OS: CentOS Linux 8 x86_64
     KKSSV' 4KKK LJ KKKL.'VSSKK        Host: Virtual Machine 7.0
     KKV' 4KKKKK LJ KKKKAL 'VKK        Kernel: 4.18.0-348.el8.x86_64
     V' ' 'VKKKK LJ KKKKV' ' 'V        Uptime: 3 hours, 19 mins
     .4MA.' 'VKK LJ KKV' '.4Mb.        Packages: 818 (rpm)
   . KKKKKA.' 'V LJ V' '.4KKKKK .      Shell: bash 4.4.20
 .4D KKKKKKKA.'' LJ ''.4KKKKKKK FA.    CPU: AMD EPYC 7763 (8) @ 2.445GHz
<QDD ++++++++++++  ++++++++++++ GFD>   GPU: 00:08.0 Microsoft Corporation Hyper-V virtual VGA
 'VD KKKKKKKK'.. LJ ..'KKKKKKKK FV     Memory: 449MiB / 32151MiB
   ' VKKKKK'. .4 LJ K. .'KKKKKV '
      'VK'. .4KK LJ KKA. .'KV'
     A. . .4KKKK LJ KKKKA. . .4
     KKA. 'KKKKK LJ KKKKK' .4KK
     KKSSA. VKKK LJ KKKV .4SSKK
              <><><><>
               'MKKM'
                 ''

This tutorial goes through how to install OpenSSL 3+ on CentOS 8 Linux, since the yum repo only installs up to OpenSSL 1.1.1.

#The OpenSSL when installing from repo
openssl version
OpenSSL 1.1.1k  FIPS 25 Mar 2021

Before you begin

1. SSH to your Linux server with a sudo user then update the system then install the require packages:

sudo yum -y update
sudo yum install -y make gcc perl-core pcre-devel wget zlib-devel

2. Download the latest version of OpenSSL source code:

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

Configure, build and install OpenSSL

3. Uncompress the source file then changes to the OpenSSL directory:

sudo tar -xzvf openssl-3*.tar.gz
cd openssl-3*/

4. Configure the package for compilation, compile package then installs compiled package:

./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
sudo make -j ${nproc} 
sudo make test
sudo make install -j ${nproc} 

Export library path

5. Create environment variable file then doad the environment variable:

echo "export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64" >> /etc/profile.d/openssl.sh
source /etc/profile.d/openssl.sh

6. Finally, verify the OpenSSL version:

[root@ct7 ~]# openssl version
OpenSSL 3.1.1 30 May 2023 (Library: OpenSSL 3.1.1 30 May 2023)

Installation script

All above steps can be run automatically with the below bash script:

sudo yum -y update
sudo yum install -y make gcc perl-core pcre-devel wget zlib-devel
wget https://www.openssl.org/source/openssl-3.1.6.tar.gz
sudo tar -xzvf openssl-3*.tar.gz
cd openssl-3*/
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
sudo make -j ${nproc} 
sudo make test
sudo make install -j ${nproc} 
echo "export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64" >> /etc/profile.d/openssl.sh
source /etc/profile.d/openssl.sh
openssl version

Create a bash script using your favorite text editor → make it executable then run it.

sudo nano installer.sh
sudo chmod +x installer.sh
./installer.sh
Note Related: How To Install or Update OpenSSL 3 on CentOS 7.

Direct installation bash script

Alternatively, we’ve created a bash script stored in GitHub. All you need to do are SSH to your server with a sudo account then run the following command:

sudo wget -qO - https://bonguides.com/linux/openssl3 | bash
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Refresh Environment Variables in PowerShell without Close then Reopen

Next Post

How to Generate Large Files using PowerShell

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory