Fix CSR renewal on private key removal

Signed-off-by: Stéphane Este-Gracias <sestegra@gmail.com>
This commit is contained in:
Stéphane Este-Gracias 2022-08-28 19:03:27 +02:00
parent fc1df9f9a5
commit 6541166688
No known key found for this signature in database
GPG Key ID: B92297E2A4048C9B

View File

@ -4396,7 +4396,7 @@ issue() {
_debug "_saved_account_key_hash is not changed, skip register account."
fi
if [ -f "$CSR_PATH" ] && [ ! -f "$CERT_KEY_PATH" ]; then
if [ -f "$CSR_PATH" ] && [ -f "$CERT_KEY_PATH" ] && [ ! "$Le_ForceNewDomainKey" = "1" ]; then
_info "Signing from existing CSR."
else
# When renewing from an old version, the empty Le_Keylength means 2048.