Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mozilla/ssl-config-generator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGene Wood <gene_wood@cementhorizon.com>2021-04-05 18:15:42 +0300
committerGitHub <noreply@github.com>2021-04-05 18:15:42 +0300
commitf760b90f05780a110ef1e6b07f375a8b0c30e53b (patch)
tree97398f5dc8a703320f79162f893cd2769727970c
parent4cdfe00f891f572bdc0dae2fbe60db31d8986b74 (diff)
parent1b12ef9e05693dbde54a7ccd64cff8f9d1c836a3 (diff)
Merge pull request #122 from gstrauss/lighttpd-1.4.56
lighttpd 1.4.56
-rwxr-xr-xsrc/js/configs.js2
-rw-r--r--src/templates/partials/lighttpd.hbs54
2 files changed, 48 insertions, 8 deletions
diff --git a/src/js/configs.js b/src/js/configs.js
index 253db83..efe1a5b 100755
--- a/src/js/configs.js
+++ b/src/js/configs.js
@@ -88,7 +88,7 @@ module.exports = {
},
lighttpd: {
highlighter: 'nginx',
- latestVersion: '1.4.55',
+ latestVersion: '1.4.59',
name: 'lighttpd',
tls13: '1.4.48'
},
diff --git a/src/templates/partials/lighttpd.hbs b/src/templates/partials/lighttpd.hbs
index 227e87f..8b89f33 100644
--- a/src/templates/partials/lighttpd.hbs
+++ b/src/templates/partials/lighttpd.hbs
@@ -25,25 +25,62 @@ $HTTP["scheme"] == "https" {
}
{{/if}}
+{{#if (minver "1.4.56" form.serverVersion)}}
+# select one TLS module: "mod_openssl" "mod_mbedtls" "mod_gnutls" "mod_wolfssl" "mod_nss"
+#server.modules += ("mod_openssl")
+
+# lighttpd 1.4.56 and later will inherit ssl.* from the global scope if
+# $SERVER["socket"] contains ssl.engine = "enable" and no other ssl.* options
+# (to avoid having to repeat ssl.* directives in both ":443" and "[::]:443")
+$SERVER["socket"] == ":443" { ssl.engine = "enable" }
+$SERVER["socket"] == "[::]:443" { ssl.engine = "enable" }
+ssl.privkey = "/path/to/private_key"
+ssl.pemfile = "/path/to/signed_cert_followed_by_intermediates"
+ {{#if (minver "1.0.2" form.opensslVersion)}}
+ {{#if (minver "1.1.0" form.opensslVersion)}}
+ssl.openssl.ssl-conf-cmd = ("MinProtocol" => {{#if (includes "TLSv1" output.protocols)}}"TLSv1"{{else if (includes "TLSv1.1" output.protocols)}}"TLSv1.1"{{else if (includes "TLSv1.2" output.protocols)}}"TLSv1.2"{{else}}"TLSv1.3"{{/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}}")
+ {{/if}}
+ssl.openssl.ssl-conf-cmd += ("Options" => "{{#if output.serverPreferredOrder}}+{{else}}-{{/if}}ServerPreference")
+ {{#if output.ciphers.length}}
+# TLS modules besides mod_openssl might name ciphers differently
+# See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_SSL
+ssl.openssl.ssl-conf-cmd += ("CipherString" => "{{{join output.ciphers ":"}}}")
+ {{/if}}
+ {{#if form.ocsp}}
+# OCSP stapling (input file must be maintained by external script)
+# https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_SSL#OCSP-Stapling
+ssl.stapling-file = "/path/to/cert-staple.der"
+ {{/if}}
+ {{else}}
+ssl.use-sslv2 = "disable"
+ssl.use-sslv3 = "disable"
+ssl.honor-cipher-order = "{{#if output.serverPreferredOrder}}enable{{else}}disable{{/if}}"
+ {{#if output.ciphers.length}}
+ssl.cipher-list = "{{{join output.ciphers ":"}}}"
+ {{/if}}
+ {{/if}}
+{{else}}
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
- {{#if (minver "1.4.53" form.serverVersion)}}
+ {{#if (minver "1.4.53" form.serverVersion)}}
ssl.privkey = "/path/to/private_key"
ssl.pemfile = "/path/to/signed_cert"
ssl.ca-file = "/path/to/intermediate_certificate"
- {{else}}
+ {{else}}
# pemfile is cert+privkey, ca-file is the intermediate chain in one file
ssl.pemfile = "/path/to/signed_cert_plus_private_key"
ssl.ca-file = "/path/to/intermediate_certificate"
- {{/if}}
-{{#if output.usesDhe}}
- {{#if (minver "1.4.29" form.serverVersion)}}
+ {{/if}}
+ {{#if output.usesDhe}}
+ {{#if (minver "1.4.29" form.serverVersion)}}
# {{output.dhCommand}} > /path/to/dhparam
ssl.dh-file = "/path/to/dhparam"
- {{/if}}
-{{/if}}
+ {{/if}}
+ {{/if}}
# {{form.config}} configuration
{{#if (minver "1.4.48" form.serverVersion)}}
@@ -60,6 +97,9 @@ $SERVER["socket"] == ":443" {
ssl.use-sslv3 = "disable"
{{/if}}
ssl.honor-cipher-order = "{{#if output.serverPreferredOrder}}enable{{else}}disable{{/if}}"
+ {{#if output.ciphers.length}}
ssl.cipher-list = "{{{join output.ciphers ":"}}}"
+ {{/if}}
}
#$SERVER["socket"] == "[::]:443" { ... } # repeat entire $SERVER["socket"] == ":443" { ... } config above for IPv6
+{{/if}}