Protect only private keys and leave certificates world readable.

This commit is contained in:
Jens Meißner
2020-11-23 20:32:24 +01:00
parent 5b85a1c183
commit 2a770a93b1

View File

@@ -105,7 +105,9 @@ class DomainSSL
$_fh = fopen($filename, 'w');
fwrite($_fh, $dom_certs[$type]);
fclose($_fh);
chmod($filename, 0600);
if ($type == 'ssl_key_file') {
chmod($filename, 0600);
}
}
}
// override corresponding array values