Skip to content

Commit

Permalink
lighttpd 1.4.78 prep
Browse files Browse the repository at this point in the history
lighttpd 1.4.78 will default to TLSv1.3
  • Loading branch information
gstrauss committed Oct 11, 2024
1 parent 21a36e4 commit 9be5d30
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/templates/partials/lighttpd.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ ssl.openssl.ssl-conf-cmd = ("MinProtocol" => "TLSv1")
{{else if (includes "TLSv1.1" output.protocols)}}
ssl.openssl.ssl-conf-cmd = ("MinProtocol" => "TLSv1.1")
{{else if (includes "TLSv1.2" output.protocols)}}
{{#unless (minver "1.4.56" form.serverVersion)}}
{{#if (minver "1.4.78" form.serverVersion)}}
ssl.openssl.ssl-conf-cmd = ("MinProtocol" => "TLSv1.2")
{{/unless}}
{{else}}
{{else}}
{{#unless (minver "1.4.56" form.serverVersion)}}
ssl.openssl.ssl-conf-cmd = ("MinProtocol" => "TLSv1.2")
{{/unless}}
{{/if}}
{{else if (includes "TLSv1.3" output.protocols)}}
{{#unless (minver "1.4.78" form.serverVersion)}}
ssl.openssl.ssl-conf-cmd = ("MinProtocol" => "TLSv1.3")
{{/unless}}
{{/if}}
{{else}}
ssl.openssl.ssl-conf-cmd = ("Protocol" => "ALL, -SSLv2, -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}}")
Expand Down

0 comments on commit 9be5d30

Please sign in to comment.