$ sudo yum -y install openssl openssl-devel
$ openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017
As seen from the output the version available is 1.0.2. If installed remove it before you proceed.
sudo yum -y remove openssl openssl-devel
$ openssl version
-bash: openssl: command not found
yum -y groupinstall “Development Tools”
wget https://www.openssl.org/source/openssl-1.1.1t.tar.gz
tar xvf openssl-1.1.1t.tar.gz
cd openssl-1.1*/
./config –prefix=/usr/local/openssl –openssldir=/usr/local/openssl
make -j $(nproc)
make install
ldconfig
tee /etc/profile.d/openssl.sh<