升级OpenSSL版本

1.查看openssl版本

1
openssl version

2.下载指定版本的openssl软件

1
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz

3.编译安装

1
2
3
cd openssl-1.1.1i/
./config shared zlib
make && make install

4.配置

1
2
3
4
5
6
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl /usr/include/openssl.bak
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
ldconfig -v

5、查看是否升级成功

1
openssl version