From a9d0419c75fbfb57031a4a4410097d4256079b07 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Wed, 12 Feb 2020 20:50:38 +0000 Subject: [PATCH] Fix "Registration key already in use" error --- getssl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getssl b/getssl index 7de661c..2de9612 100755 --- a/getssl +++ b/getssl @@ -210,10 +210,11 @@ # 2020-02-11 Add SCP_OPTS and SFTP_OPTS # 2020-02-12 Fix for DUAL_RSA_ECDSA not working with ACMEv2 (#334, #474, #502) # 2020-02-12 Fix #424 - Sporadic "error in EC signing couldn't get R from ..." (2.18) +# 2020-02-12 Fix "Registration key already in use" (2.19) # ---------------------------------------------------------------------------------------- PROGNAME=${0##*/} -VERSION="2.18" +VERSION="2.19" # defaults ACCOUNT_KEY_LENGTH=4096 @@ -1753,7 +1754,7 @@ 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 + if [[ "$code" == 4* && $response != *"error:badNonce"* && "$code" != 409 ]]; then detail=$(echo "$response" | grep "detail") error_exit "ACME server returned error: ${code}: ${detail}" fi