keep re-use old-key setting for Let's Encrypt

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-17 19:25:23 +01:00
parent 44433ef86e
commit 459cbcc0dd
4 changed files with 15 additions and 0 deletions

View File

@@ -271,6 +271,9 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron
if (Settings::Get('system.leecc') > 0) {
$acmesh_cmd .= " --keylength ec-" . Settings::Get('system.leecc');
}
if (Settings::Get('system.letsencryptreuseold') != '1') {
$acmesh_cmd .= " --always-force-new-domain-key";
}
$acme_result = \Froxlor\FileDir::safe_exec($acmesh_cmd);