This walkthough will help you to install OpenSSL on RHEL or CentOS based environments.
$ sudo yum remove openssl-devel
$ sudo yum install libtool perl-core zlib-devel -y
Pull from Github, choose the version without FIPS. Installation is more secure to have OpenSSL without FIPS, as fixes are usually included much faster in regular version than in FIPS version.
| https://github.com/openssl/openssl/releases
$ curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1e.tar.gz
$ tar -zxvf OpenSSL_1_1_1e.tar.gz
$ cd openssl-OpenSSL_1_1_1e
$ ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib
$ make
If any fail you need to fix them before installing the library
$ make test
$ sudo make install
$ sudo nano /etc/ld.so.conf
Add the path, save and exit
$ /usr/local/openssl/lib
Reload
$ ldconfig
$ reload terminal
$ openssl version
You can now remove installation package and folder
$ rm OpenSSL_1_1_1e.tar.gz
$ rm -rf openssl-OpenSSL_1_1_1e