升级openssl环境至最新
1、查看源版本
openssl version -v
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
2、下载最新版openssl https://www.openssl.org/source/
wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz
3、更新zlib
yum install -y zlib
4、解压安装
tar -zxvf openssl-1.0.2l.tar.gz
cd openssl-1.0.2l
./config shared zlib
make && make install (编译安装)
5、配置一下
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl /usr/include/openssl.bak
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
ldconfig -v
5、查看是否升级成功
[root@zj ~]# openssl version -v