1.下載源 点我打开链接 如果打不开就用迅雷直接下载、
cd /usr/local/src/
wget https://www.openssl.org/source/openssl-1.1.1s.tar.gz
2.解压,进入openssl文件夹,安装
tar -xzvf openssl-1.1.1s.tar.gz
cd openssl-1.1.1s/
./config
3.编译,测试编译,编译安装
make
make test
sudo make install
4.取代旧版
mv /usr/bin/openssl /usr/bin/oldopenssl
ln -s /usr/local/bin/openssl /usr/bin/openssl
5.正常会出现以下问题
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/
6.完结 撒花
7.常见错误
错误:begin failed–compilation aborted at .././test/run_tests.pl
解决:sudo yum install perl-devel错误:Parse errors: No plan found in TAP output
解决:yum install perl-Test-Simple
8.我是因为Python TLS/SSL的关系,所以需要重新安装Python一次
回到Python安装目录
./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl
make
make install