当前位置:网站首页>openssl版本升级
openssl版本升级
2022-07-24 05:23:00 【踩坑之路】
openssl版本升级
1.查看openssl版本
[[email protected] ~]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 20172.下载指定版本的openssl软件
OpenSSL官网地址:https://www.openssl.org/source/
这里下载 openssl-1.1.1i 版本
[[email protected] ~]# mkdir /opt/src/
[[email protected] ~]# cd /opt/src/
[[email protected] src]# wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz
3.编译安装
# 备份旧版本
[[email protected] src]# mv /usr/bin/openssl{,.bak20201211}
# 解压
[[email protected] src]# tar xf openssl-1.1.1i.tar.gz -C /opt/
[[email protected] src]# cd /opt/openssl-1.1.1i/
# 编译
[[email protected] openssl-1.1.1i]# ./config --prefix=/opt/openssl --openssldir=/opt/openssl shared
[[email protected] openssl-1.1.1i]# make -j2 && make install
# 参数解释:
--openssldir=/opt/openssl
安装目录,默认:/usr/local/ssl
--prefix=PREFIX
设置 lib、include、bin 目录,默认:/usr/local/ssl
shared
no-shared
是否生成动态连接库。
# 添加新的openssl软链接
[[email protected] openssl-1.1.1i]# ln -s /opt/openssl/bin/openssl /usr/bin/openssl
# 将新的库文件地址写入记录so库的配置文件
[[email protected] openssl-1.1.1i]# echo "/opt/openssl/lib/" >> /etc/ld.so.conf
# 设置生效
[[email protected] openssl-1.1.1i]# ldconfig
# 测试
[[email protected] openssl-1.1.1i]# openssl version
OpenSSL 1.1.1i 8 Dec 2020边栏推荐
- IP作业(6)
- IA课总结(1)
- Customize MVC 3.0
- MeterSphere一站式开源持续测试平台
- Summary of ten common vulnerabilities (principle, harm, defense)
- LVM and disk quota
- Leetcode sword finger offer JZ9 dual stack implementation queue
- [222] memory overflow and location
- IP笔记(6)
- Do not rent servers, build your own personal business website (2)
猜你喜欢

IA课总结(2)

Leetcode sword finger offer jz73 flip word sequence

Heap overflow of kernel PWN basic tutorial

How to build a website full of ritual sense and publish it on the public website 1-2

UE4 reload system 1. basic principle of reload system

IP course (OSPF) comprehensive experiment
![[214] what is an automation framework](/img/bb/24c35613c49357258876ce3f1611ee.jpg)
[214] what is an automation framework

IA笔记 1

进行挂载永久挂载后无法开机

Unity shader: realize diffuse reflection and specular reflection
随机推荐
leetcode剑指offer JZ73 翻转单词序列
[no need for public IP] configure a fixed public TCP port address for remote desktop raspberry pie
【226】wireshark的参数使用说明
[251] common test tools
Sword finger offer jz10 Fibonacci sequence
API流程和代码结构
【301】怪诞行为学-可预测的非理性
数据集和预训练模型
IP课(OSPF)综合实验
IP笔记(10)
Quickly and simply set up FTP server, and achieve public network access through intranet [no need for public IP]
Luckyframeweb testing platform (a full latitude free open source testing platform that supports interface automation, Web UI automation, APP automation, and distributed testing)
IA课总结(2)
Playing RTSP video stream on webpage
[award issuance] the results of the first essay solicitation activity in oneos zone were announced
【222】内存溢出及定位
Customize MVC 3.0
进程和计划任务管理
测试经理/测试组长/测试主管面试题
IP笔记(11)