Home » Default » Centos7 升级OPENSSL到1.1.1n

首先下载解压最新的 OpenSSL

wget https://www.openssl.org/source/openssl-1.1.1n.tar.gz
tar xvf openssl-1.1.1n.tar.gz
./config --prefix=/usr/local/openssl // 指定安装路径
make && make install

备份旧版替换新版

mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/lib64/openssl /usr/lib64/openssl.old
mv /usr/lib64/libssl.so /usr/lib64/libssl.so.old
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so /usr/lib64/libssl.so
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
ldconfig -v 

最后查看当前系统 openssl 版本

[root@localhost~]# openssl version
OpenSSL 1.1.1n  15 Mar 2022

转自:https://www.cnblogs.com/mrcoolfuyu/p/11446644.html

标签: centos OpenSSL openssl1.1.1n

添加新评论

V