sudo yum groupinstall 'Development Tools'
git clone https://github.com/philyuchkoff/openssl-RPM-Builder
cd openssl-RPM-Builder
chmod +x install-openssl_1.1.1.sh
sudo ./install-openssl_1.1.1.sh
Builded RPM will be in
/root/rpmbuild/RPMS/x86_64/
After install-openssl_1.1.1.sh
will finish, you can install builded rpm:
sudo rpm -ivvh /root/rpmbuild/RPMS/x86_64/openssl-1.1.1k-1.el7.x86_64.rpm --nodeps
$openssl version
OpenSSL 1.1.1k 25 Mar 2021
or
$rpm -qa openssl
openssl-1.1.1k-1.el7.x86_64