Centos7源码升级openssl到1.1.1n

本文档详细记录了在CentOS7上从源码升级OpenSSL到1.1.1n的过程,包括下载源码、解压、编译安装、配置环境变量以及验证升级结果。通过这些步骤,系统可以获取到最新版的OpenSSL,提升系统的安全性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

旺仔_牛奶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值