File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ All notable changes to this project will be documented in this file.
6565- Fixed lograte bug and cleans up the messed up nginx/apache2 log permissions.
6666- Fixed IfModule mpm_itk.c for apache2 templates.
6767- Added mpm_itk for Deb10 single php installation only.
68+ - Hardening nginx configuration, drop TLSv1.1 support.
6869
6970## [ 1.0.6] - 2019-09-24 - Hotfix
7071### Bugfixes
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ http {
106106 ssl_session_cache shared:SSL:20m ;
107107 ssl_session_timeout 60m ;
108108 ssl_buffer_size 1400 ;
109- ssl_protocols TLSv1.1 TLSv1. 2 TLSv1.3;
109+ ssl_protocols TLSv1.2 TLSv1.3;
110110 ssl_prefer_server_ciphers on;
111111 ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS" ;
112112 ssl_dhparam /etc/ssl /dhparam.pem;
Original file line number Diff line number Diff line change @@ -151,6 +151,15 @@ if [ -e "/etc/mysql/my.cnf" ]; then
151151 fi
152152fi
153153
154+ # Hardening nginx configuration, drop TLSv1.1 support.
155+ if [ -e " /etc/nginx/nginx.conf" ]; then
156+ nginx_tls_check=$( grep TLSv1.1 /etc/nginx/nginx.conf)
157+ if [ ! -z " $nginx_tls_check " ]; then
158+ echo " (*) Hardening nginx configuration, drop TLSv1.1 support..."
159+ sed -i ' s/TLSv1.1 //g' /etc/nginx/nginx.conf
160+ fi
161+ fi
162+
154163# Fix logrotate permission bug for nginx
155164if [ -e " /etc/logrotate/nginx" ]; then
156165 sed -i " s/create 640 nginx adm/create 640/g" /etc/logrotate.d/nginx
You can’t perform that action at this time.
0 commit comments