升级OpenSSL

#CentOS7的OpenSSL软件版本比较低
[root@instance-20210823-2231 ~]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017
[root@instance-20210823-2231 ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

#安装基础组件:
yum install gcc gcc-c++ autoconf automake zlib zlib-devel pcre-devel -y

#下载解压编译安装openssl

wget http://artfiles.org/openssl.org/source/openssl-1.1.1l.tar.gz
tar xvf openssl-1.1.1i.tar.gz
./config shared --openssldir=/usr/local/openssl --prefix=/usr/local/openssl
make
make install

 

#移除老版本openssl
mv /usr/bin/openssl /tmp/
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl

配置lib库

echo "/usr/local/openssl/lib/" >> /etc/ld.so.conf
ldconfig

 

#查看版本
[root@c7 ~]# openssl version
[root@instance-20210823-2231 openssl-1.1.1l]# openssl version
OpenSSL 1.1.1l 24 Aug 2021

 

升级OpenSSL
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Scroll to top
0
Would love your thoughts, please comment.x
()
x