Centos7源码升级openssl到1.1.1n

# 下载源码包
[root@k8s-master-1 ~]# wget https://www.openssl.org/source/openssl-1.1.1n.tar.gz

# 解压
[root@k8s-master-1 ~]# tar -zxf openssl-1.1.1n.tar.gz

# 编译安装
[root@k8s-master-1 ~]# cd openssl-1.1.1n/
You have new mail in /var/spool/mail/root
[root@k8s-master-1 openssl-1.1.1n]# ./config --prefix=/usr/local/openssl
Operating system: x86_64-whatever-linux2
Configuring OpenSSL version 1.1.1n (0x101010efL) for linux-x86_64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL file first)         ***
***                                                                ***
**********************************************************************
[root@k8s-master-1 openssl-1.1.1n]# make && make install

# 配置
[root@k8s-master-1 openssl-1.1.1n]# mv /usr/bin/openssl /usr/bin/openssl.bak
[root@k8s-master-1 openssl-1.1.1n]# ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl
[root@k8s-master-1 openssl-1.1.1n]# echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
[root@k8s-master-1 openssl-1.1.1n]# ldconfig -v
[root@k8s-master-1 openssl-1.1.1n]# openssl version
OpenSSL 1.1.1n  15 Mar 2022
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐