honor setting for let's encrypt key size if needed

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-17 19:47:51 +01:00
parent f5127eccd1
commit 5c36b79277
3 changed files with 12 additions and 3 deletions

View File

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