Merge pull request #900 from heptalium/master

Protect only private keys and leave certificates world readable.
This commit is contained in:
Michael Kaufmann
2020-12-10 09:29:51 +01:00
committed by GitHub

View File

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