]> git.proxmox.com Git - mirror_acme.sh.git/commit - acme.sh
Fix Le_Keylength checks during renewals
authorClark Boylan <clark.boylan@gmail.com>
Tue, 10 May 2022 17:42:19 +0000 (10:42 -0700)
committerClark Boylan <clark.boylan@gmail.com>
Tue, 10 May 2022 17:42:19 +0000 (10:42 -0700)
commitb376dfa1e65b2614848974648f74566ab77242cb
treee4254d4d73bfd6aa784b587c08a99ace8640b7f4
parentf16e060e871c407d8963b3d5be233b967579b0f0
Fix Le_Keylength checks during renewals

When performing renewals acme.sh checks key length values to determine
if a new key should be created with createDomainKey(). However, older
acme.sh stored key length as an empty value if the default of 2048 was
desired. Now it is explicit and the explict check of 2048 against "" is
causing createDomainKey() to always be called with fails without
--force.

Fix this by converting the keylength value to 2048 if an empty string is
returned from the config file. acme.sh will then write out 2048 updating
old keys and configs to the explicit version.

Issue: 4077
acme.sh