下载
https://www.openssl.org/source/old/1.1.1/index.html
安装依赖
bash
yum install gcc libffi-devel zlib* openssl-devel libffi-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc perl make
解压
bash
tar -zxvf openssl-1.1.1w.tar.gz
编译安装
bash
cd openssl-1.1.1w
./config --prefix=/usr/local/openssl
make && make install
配置修改
bash
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl/ /usr/include/openssl.bak
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
echo "/usr/local/lib64" >> /etc/ld.so.conf
配置检查
bash
ldconfig -v
查看版本
bash
openssl version
当控制台输出"OpenSSL 1.1.1w 11 Sep 2023"即表示升级成功