Skip to content

Commit

Permalink
Fix bug with ssl-conf-cmd and lighttpd. Closes #43.
Browse files Browse the repository at this point in the history
  • Loading branch information
april committed Jul 16, 2019
1 parent 2c1c949 commit 7ab7185
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/templates/partials/lighttpd.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ $SERVER["socket"] == ":443" {
)

# {{form.config}} configuration, tweak to your needs
{{#if (minver "1.4.8" form.serverVersion)}}
ssl.openssl.ssl-conf-cmd = ("Protocol" => "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 (minver "1.4.48" form.serverVersion)}}
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}}")
{{else}}
# Please upgrade to 1.4.48 or else you cannot fully disable deprecated protocols
ssl.use-sslv2 = "disable"
ssl.use-sslv3 = {{#if (includes "SSLv3" output.protocols)}}"enable"{{else}}"disable"{{/if}}
ssl.use-sslv3 = "disable"
{{/if}}
ssl.cipher-list = "{{{join output.ciphers ":"}}}"
ssl.honor-cipher-order = "{{#if output.serverPreferredOrder}}enable{{else}}disable{{/if}}"
Expand Down

0 comments on commit 7ab7185

Please sign in to comment.