CentOS升级openssl

2023-06-12,,

才设置了http2,结果蓝狗说我网站不安全,检测一下发现openssl有漏洞,于是准备升级一下openssl

检测网站: www.ssllabs.com/ssltest/analyze.html

# Based on http://fearby.com/article/update-openssl-on-a-digital-ocean-vm/

$ apt-get update
$ apt-get dist-upgrade $ wget ftp://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2h.tar.gz
$ tar -xvzf openssl-1.0.2h.tar.gz
$ cd openssl-1.0.2h
//如果没有安装gcc,这里会报错
$ yum -y install gcc
$ ./config --prefix=/usr/
$ make depend
$ sudo make install
$ openssl version
# OpenSSL 1.0.2h May # now restart your nginx or other server
$ nginx -s reload

CentOS升级openssl的相关教程结束。

《CentOS升级openssl.doc》

下载本文的Word格式文档,以方便收藏与打印。