当前位置:网站首页>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边栏推荐
- Homework in the second week
- IP notes (11)
- [218] what are the advantages and disadvantages of CS architecture and BS architecture and data on the server and client?
- Map the intranet to the public network [no public IP required]
- IP课笔记(4)
- 【226】wireshark的参数使用说明
- Li Kou 986. Intersection of interval lists
- API流程和代码结构
- 一个测试经理/测试主管/测试总监的工作总结
- Public access intranet IIS website server [no public IP required]
猜你喜欢

IP notes (7)

ip作业(1)

Simple but easy to use: using keras 2 to realize multi-dimensional time series prediction based on LSTM

The public network uses Microsoft Remote Desktop remote desktop to work remotely at any time

sed命令

Unity (III) three dimensional mathematics and coordinate system

LuckyFrameWeb测试平台(一款支持接口自动化、WEB UI自动化、APP自动化,并且支持分布式测试的全纬度免费开源测试平台)

IP课笔记(5)

Jenkins automated unattended operation (up / down)

Log collection and analysis platform
随机推荐
Leetcode refers to offer jz5 to replace the space string
Wasm vs EVM, Boca's choice predicts the future of the public chain
【217】#!/usr/bin/env 的意义
go语言常用命令和包管理
Jenkins自动化无人值守运行(上/下)
IP笔记(12)
[251] common test tools
Log collection and analysis platform
MeterSphere一站式开源持续测试平台
A batch of interview questions and answers_ 20180403 latest arrangement
Flink function (2): checkpointedfunction
Unity shader: realize diffuse reflection and specular reflection
Batch operation of generating MySQL statements from Excel
[219] what is the difference between app testing and web testing?
IA笔记 1
XML parsing
leetcode剑指offer JZ73 翻转单词序列
【251】常见的测试工具
Configure a fixed remote desktop address [intranet penetration, no need for public IP]
API流程和代码结构