ubuntu openssl降级 3.0.2降为1.0.2

时间:2025-01-23 07:51:23

依次执行如下指令:

wget https://www.openssl.org/source/openssl-1.0.2.tar.gz
tar -xzvf openssl-1.0.2.tar.gz
cd openssl-1.0.2
./config shared --prefix=/usr/local/ssl --openssldir=/usr/local/ssl
make
sudo make install
sudo mv /usr/bin/openssl /usr/bin/openssl.backup
sudo ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
openssl version