This tutorial goes through how to install openssl 1.1.1 on CentOS 7, since the yum repo only installs up to openssl 1.0.
Upgrade the system
yum -y update
Install required packages
yum install -y make gcc perl-core pcre-devel wget zlib-devel
Download the latest version of OpenSSL source code
wget https://ftp.openssl.org/source/openssl-1.1.1k.tar.gz
Uncompress the source file
tar -xzvf openssl-1.1.1k.tar.gz
Change to the OpenSSL directory
cd openssl-1.1.1k
Configure the package for compilation
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
Compile package
make
Test compiled package
make test
Install compiled package
make install
Create environment variable file
vim /etc/profile.d/openssl.sh
Add the following content
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
Load the environment variable
source /etc/profile.d/openssl.sh
openssl version
Many thanks, I'll try it and update you again
P.S
Does it means I have to update any other applications in the system that still uses old openssl?
Although I updated the system openssl it looks like I still have applications like Vertica that is still using libraries fro the old version
Like this alert from Nessus report on Vertica
"/opt/vertica/lib/libcrypto.so.1.1"
Reported version : 1.1.1d
Fixed version : 1.1.1p
or for example here from Nessus report
Path : /usr/lib64/libcrypto.so.1.0.2k
Reported version : 1.0.2k
Fixed version : 1.0.2ze
Sorry for bothering you but I'm not that professional on Linux
Your comments are greatly appreciated