升级openssl
检查当前版本
openssl version
下载最新的openssl【2017-11-2】
# wget https://www.openssl.org/source/openssl-1.1.0g.tar.gz
不要执行卸载openssl
# apt-get remove openssl【这样卸载会出现很多问题........】
安装
#tar -zxvf openssl-1.1.0g.tar.gz
#cd openssl-1.1.0g/
#./config
#make
#make install
配置
# mv /usr/bin/openssl /usr/bin/openssl.bak
# ln -s /usr/local/bin/openssl /usr/bin/openssl
# ln -s /usr/local/include/openssl /usr/include/openssl
# echo "/usr/local/lib" >> /etc/ld.so.conf
测试:
# openssl version
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
openssl: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
查找文件
# cp /usr/local/lib/libssl.so.1.1 /usr/lib/
# cp /usr/local/lib/libcrypto.so.1.1 /usr/lib/