How To Install OpenSSL 1.1.x on CentOS 7 / RHEL 7

$ 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<

发表评论

电子邮件地址不会被公开。 必填项已用*标注