From 874d24abc95e5c27dfdf8d7ac42b3d9558d57ef2 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Tue, 4 Feb 2020 07:40:08 +0000 Subject: [PATCH] Ignore "Registration key is already in use" errors --- getssl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/getssl b/getssl index a91d61f..9b331d6 100755 --- a/getssl +++ b/getssl @@ -1756,7 +1756,8 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p debug response "$response" code=$(awk ' $1 ~ "^HTTP" {print $2}' "$CURL_HEADER" | tail -1) debug code "$code" - if [[ "$code" == 4* && $response != *"error:badNonce"* ]]; then + # Check for errors but ignore code 409 (Registration key is already in use) as we always try to register the account + if [[ "$code" == 4* && "$code" != "409" && $response != *"error:badNonce"* ]]; then detail=$(echo "$response" | grep "detail") error_exit "ACME server returned error: ${code}: ${detail}" fi