This tutorial goes through how to install openssl 1.1.1 on CentOS 9
Upgrade the system
sudo dnf -y updateInstall required packages
sudo dnf install -y make gcc perl-core pcre-devel wget zlib-develDownload the latest version of OpenSSL source code
wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gzUncompress the source file
tar -xzvf openssl-1.1.1w.tar.gzChange to the OpenSSL directory
cd openssl-1.1.1wConfigure the package for compilation
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamicCompile package
makeTest compiled package
make testInstall compiled package
make installCreate environment variable file
vim /etc/profile.d/openssl.shAdd the following content
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64Load the environment variable
source /etc/profile.d/openssl.shopenssl version
Thanks, that helps a lot