查看openssl版本
#openssl version
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
如果需要zlib库支持,可以装上!
yum install -y zlib
安装最新版本:
wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
tar xvzf openssl-1.0.1h.tar.gz
./config shared zlib #支持zlib压缩与解压缩,并创建共享库
make
make install
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
检查版本:
# openssl version
OpenSSL 1.0.1h 5 Jun 2014
升级完毕!