1、删除原来版本:
sudo apt-get remove libssl1.0-dev libssl-dev
删除链接:
删除 /bin/openssl
2、下载版本
wget --no-check-certificate https://www.openssl.org/source/old/1.0.0/openssl-1.0.0.tar.gz
解压安装:
tar -xzvf ./openssl-OpenSSL_1_0_2t.tar.gz
cd openssl-OpenSSL_1_0_2t
sudo ./config --prefix=/usr/local --openssldir=/usr/local/openssl enable-shared
删除安装环境问题:
sudo rm -f /usr/bin/pod2man # 否则会报错:POD document had syntax errors at /usr/bin/pod2man line 69. make: *** [install_docs]
安装命令:
sudo make
sudo make install
查看版本信息
openssl version -a