From 48c9b3b403d2b00c58fead8d40913b0d29b03042 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 22 Feb 2021 09:22:31 +0100 Subject: [PATCH] system: adapt lighttpd ssl.privkey approach #4728 While we need to hide the key we do not have to chmod the certificate or the chain. ;) --- src/etc/inc/plugins.inc.d/webgui.inc | 36 ++++++++-------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/src/etc/inc/plugins.inc.d/webgui.inc b/src/etc/inc/plugins.inc.d/webgui.inc index 8154d76a8..e96b61127 100644 --- a/src/etc/inc/plugins.inc.d/webgui.inc +++ b/src/etc/inc/plugins.inc.d/webgui.inc @@ -194,8 +194,8 @@ function webgui_generate_config($port, $cert, $key, $ca, $listeners) { global $config; - $cert_location = 'cert.pem'; - $ca_location = 'ca.pem'; + $cert_location = '/var/etc/cert.pem'; + $key_location = '/var/etc/key.pem'; @mkdir('/tmp/lighttpdcompress'); @@ -250,7 +250,6 @@ EOD; $lighty_modules = !empty($config['system']['webgui']['httpaccesslog']) ? ', "mod_accesslog"' : ""; - $lighty_config = <<