From 5af341a71952120e657b01fe265dfaba45fc2ca1 Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Thu, 17 Oct 2024 19:20:12 +0200 Subject: [PATCH] Simplify apache protocols --- src/templates/partials/apache.hbs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/templates/partials/apache.hbs b/src/templates/partials/apache.hbs index c13da2ac..f93045b1 100644 --- a/src/templates/partials/apache.hbs +++ b/src/templates/partials/apache.hbs @@ -38,14 +38,10 @@ # {{form.config}} configuration -{{#if (minver "2.3.16" form.serverVersion)}} -SSLProtocol all {{#unless (includes "SSLv3" output.protocols)}}-SSLv3{{/unless}} - {{~#unless (includes "TLSv1" output.protocols)}} -TLSv1{{/unless}} - {{~#unless (includes "TLSv1.1" output.protocols)}} -TLSv1.1{{/unless}} - {{~#unless (includes "TLSv1.2" output.protocols)}} -TLSv1.2{{/unless}} -{{else}} -SSLProtocol all -SSLv2 {{#unless (includes "SSLv3" output.protocols)}}-SSLv3 {{/unless}}{{#unless (includes "TLSv1" output.protocols)}}-TLSv1{{/unless}}{{#unless (includes "TLSv1.1" output.protocols)}} -TLSv1.1{{/unless}}{{#unless (includes "TLSv1.2" output.protocols)}} -TLSv1.2{{/unless}} -{{/if}} +SSLProtocol all {{#unless (minver "2.3.16" form.serverVersion)}}-SSLv2 {{/unless}}-SSLv3 + {{~#unless (includes "TLSv1" output.protocols)}} -TLSv1{{/unless}} + {{~#unless (includes "TLSv1.1" output.protocols)}} -TLSv1.1{{/unless}} + {{~#unless (includes "TLSv1.2" output.protocols)}} -TLSv1.2{{/unless}} {{#if output.ciphers.length}} SSLCipherSuite {{{join output.ciphers ":"}}} {{/if}}