Skip to content

Commit 7bf1475

Browse files
authored
Merge pull request #506 from srvrco/Fix-registration-key-already-in-use
Fix "Registration key already in use" error
2 parents 21d5a21 + a9d0419 commit 7bf1475

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

getssl

+3-2
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,11 @@
210210
# 2020-02-11 Add SCP_OPTS and SFTP_OPTS
211211
# 2020-02-12 Fix for DUAL_RSA_ECDSA not working with ACMEv2 (#334, #474, #502)
212212
# 2020-02-12 Fix #424 - Sporadic "error in EC signing couldn't get R from ..." (2.18)
213+
# 2020-02-12 Fix "Registration key already in use" (2.19)
213214
# ----------------------------------------------------------------------------------------
214215

215216
PROGNAME=${0##*/}
216-
VERSION="2.18"
217+
VERSION="2.19"
217218

218219
# defaults
219220
ACCOUNT_KEY_LENGTH=4096
@@ -1753,7 +1754,7 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p
17531754
debug response "$response"
17541755
code=$(awk ' $1 ~ "^HTTP" {print $2}' "$CURL_HEADER" | tail -1)
17551756
debug code "$code"
1756-
if [[ "$code" == 4* && $response != *"error:badNonce"* ]]; then
1757+
if [[ "$code" == 4* && $response != *"error:badNonce"* && "$code" != 409 ]]; then
17571758
detail=$(echo "$response" | grep "detail")
17581759
error_exit "ACME server returned error: ${code}: ${detail}"
17591760
fi

0 commit comments

Comments
 (0)