upgrade-openssl

How To Upgrade OpenSSL On RHEL And CentOS Operating Systems

OpenSSL is an open source tools for using the Secure Socket Layer (SSL) Transport Layer Security (TLS) protocol for web authentication. It provides cryptographic functionality, specifically SSL/TLS for popular applications such as secure web server, MySQL, Email and many more.

In this tutorial I will describe how you can upgrade OpenSSL on RHEL and CentOS systems.

Verify Current Installed OpenSSL Version

Follow the below command to get the current version of your system’s OpenSSL version.

# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013

OR, Alternatively you can also check the available version in the vendors directory too using below command

# yum info openssl

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ratiokontakt.de
 * epel: mirrors.n-ix.net
 * extras: mirror.de.leaseweb.net
 * updates: mirror.softaculous.com
Installed Packages
Name        : openssl
Arch        : x86_64
Epoch       : 1
Version     : 1.0.1e
Release     : 51.el7_2.1
Size        : 1.5 M
Repo        : installed
From repo   : updates
Summary     : Utilities from the general purpose cryptography library with TLS
            : implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications
            : between machines. OpenSSL includes a certificate management tool
            : and shared libraries which provide various cryptographic
            : algorithms and protocols.

Available Packages
Name        : openssl
Arch        : x86_64
Epoch       : 1
Version     : 1.0.1e
Release     : 51.el7_2.2
Size        : 711 k
Repo        : updates/7/x86_64
Summary     : Utilities from the general purpose cryptography library with TLS
            : implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications
            : between machines. OpenSSL includes a certificate management tool
            : and shared libraries which provide various cryptographic
            : algorithms and protocols.

Download Latest OpenSSL Version

Follow the below command to download the latest OpenSSL.

# cd /usr/local/src
# wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
# tar -zxf openssl-1.0.2-latest.tar.gz

Compile And Install/Upgrade OpenSSL

Follow the below command to manually compile OpenSSL and install/upgrade it.

# cd openssl-1.0.2a
# ./config
# make
# make test
# make install

Now again verify the installation if you get same old version, please make a copy of OpenSSL bin file like below.

# mv /usr/bin/openssl /root/
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

Now verify OpenSSL version again.

# openssl version
OpenSSL 1.0.2e 3 Dec 2015

That’s it.

Note : Compiling OpenSSL major version it may be corrupt other system binaries. Please be careful.

I hope this article will help to upgrade OpenSSL version on RHEL and CentOS systems. If you have any queries and problem please comment in comment section.

Thanks:)

YOU MAY ALSO LIKE...

RELATED POSTS...

Best 5 Linux Open Source Text Editors Text Editor is used to write code, editing text files like Linux configuration files, creating scripts and many more.In this tutorial I am going t...
How to Extract/Open RAR File in Linux or UNIX Syst... In Linux or Unix operating system you will not see unrar command because unrar is not installed by default. RAR (Roshal Archive) is a compressed and a...
Easy Steps To Install Python3 On CentOS The default Python version 2.7 is still same on latest CentOS 7. It is also not available in base repositories.If you want to use python3 follow...
Robots IP Address Ranges – Googlebot, Yahoo ... Robots also known as Crawlers, Bot, Web Wanderers, or Spiders. These are programs and used by Search Engines to explore the internet and download web ...
Manage Linux Server With Ajenti (Web Based Control... OVERVIEW:Ajenti is used to manage Linux server using web browser. It is open source web based system management tool. You can manage your system...
Googler – Command Line Google Search On Linu... OVERVIEW:Googler is the command line search tools. You can search web, news, google sites search etc just typing command in Linux. Every Linux u...

Sagar

Hi! I'm Sagar and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Reply

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