From 6541166688c7a7fb40bfbd7917d56e53f36158d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Este-Gracias?= Date: Sun, 28 Aug 2022 19:03:27 +0200 Subject: [PATCH] Fix CSR renewal on private key removal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Este-Gracias --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 428c016f..a7363f7e 100755 --- a/acme.sh +++ b/acme.sh @@ -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.