一.系统

 CentOS release 5.4(Final) 64

二.查看当前的版本信息

[root@realserver1 ~]#openssl version

OpenSSL 0.9.8e-fips-rhel5 01Jul 2008

[root@realserver1 ~]#ldconfig -v|grep ssl

        libssl.so.6 -> libssl.so.0.9.8e

        libssl.so.6 -> libssl.so.0.9.8e

        libssl3.so -> libssl3.so

        libgnutls-openssl.so.13 ->libgnutls-openssl.so.13.0.6

        libssl3.so -> libssl3.so

           libgnutls-openssl.so.13 ->libgnutls-openssl.so.13.0.6

wKiom1Qiheqwt-JHAAGZ4gqPjGQ975.jpg

三. 下载源码包编译安装

   #wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz

   #tar zxvf openssl-1.0.1i.tar.gz

   #cd openssl-1.0.1i

   #./config shared zlib     安装时需要zlib的支持

   #make && make instal

四.   配置最新安装的OpenSSL

   # mv /usr/bin/openssl/usr/bin/openssl.old

   # mv /usr/include/openssl/usr/include/openssl.old

   # 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|grepssl

   # openssl version

wKioL1QiiCyR9s6QAAG0hNfYplo410.jpg