CentOS升级openssl

时间:2023-03-08 17:06:02
CentOS升级openssl

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

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

CentOS升级openssl

# 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