升級openssl環境至openssl-1.0.1g
一、查看源版本
[root@zj ~]# openssl version -aide
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008spa
二、下載openssl-1.0.1g.tar.gz
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
三、更新zlib
yum install -y zlib
四、解壓安裝
tar zxf openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
./config shared 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
五、查看是否升級成功
[root@zj ~]# openssl version -aip
OpenSSL 1.0.1g 7 Apr 2014ssl