centos7升级openssl
1、下载openssl源码:https://www.openssl.org/source
2、解压:tar -zxvf openssl-3.0.7.tar.gz
3、配置:./config --prefix=/usr/local/
4、编译安装:make -j 4 & make install
5、配置so:让路径指向libssl.so
echo "/usr/local/lib64" >> /etc/ld.so.conf ldconfig -v
6、替换软链接:
rm /usr/lib64/libssl.so ln -s /usr/local/lib64/libssl.so /usr/lib64/libssl.so rm /usr/lib64/libcrypto.so ln -s /usr/local/lib64/libcrypto.so /usr/lib64/libcrypto.so
7、验证版本:openssl version