Skip to content

Commit c0c49a3

Browse files
committed
accept lowercase replay-nonce headers
1 parent 0e802e7 commit c0c49a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

getssl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@
293293
# 2024-03-26 Test for "true" in wildcard property of authorization responses
294294
# 2024-10-16 Add newlines to /directory response (#765)(#859)
295295
# 2025-06-18 Support profiles
296+
# 2025-07-28 Accept lowercase replay-nonce headers (#884)
296297
# ----------------------------------------------------------------------------------------
297298

298299
case :$SHELLOPTS: in
@@ -2721,9 +2722,9 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p
27212722
# get nonce from ACME server
27222723
if [[ $API -eq 1 ]]; then
27232724
nonceurl="$CA/directory"
2724-
nonce=$($CURL -I "$nonceurl" | grep "^Replay-Nonce:" | awk '{print $2}' | tr -d '\r\n ')
2725+
nonce=$($CURL -I "$nonceurl" | grep -i "^Replay-Nonce:" | awk '{print $2}' | tr -d '\r\n ')
27252726
else # APIv2
2726-
nonce=$($CURL -I "$URL_newNonce" | grep "^Replay-Nonce:" | awk '{print $2}' | tr -d '\r\n ')
2727+
nonce=$($CURL -I "$URL_newNonce" | grep -i "^Replay-Nonce:" | awk '{print $2}' | tr -d '\r\n ')
27272728
fi
27282729

27292730
nonceproblem="true"

0 commit comments

Comments
 (0)