Bug reading nonce data from headers #522

Closed
opened 2025-12-29 01:26:43 +01:00 by adam · 1 comment
Owner

Originally created by @joele89 on GitHub (Feb 22, 2021).

bug on F5 v13 (curl 7.47.1) where curl will not have spaces between header name and content. results in empty nonce variable.

# INFO: Using main config file /shared/letsencrypt/config
+ Generating account key...
+ Registering account key with ACME server...
+ ERROR: An error occurred while sending post-request to https://acme-staging-v02.api.letsencrypt.org/acme/new-acct (Status 400)

Details:
HTTP/2.0 400
server:nginx
date:Mon, 22 Feb 2021 08:12:33 GMT
content-type:application/problem+json
content-length:112
cache-control:public, max-age=0, no-cache
link:https://acme-staging-v02.api.letsencrypt.org/directory;rel="index"
replay-nonce:00032j5SQTM3vKzMqhzyW6r4AH7qJNDWVNjqg-AaT41pFyM

{
"type": "urn:ietf:params:acme:error:badNonce",
"detail": "JWS has no anti-replay nonce",
"status": 400
}

Originally created by @joele89 on GitHub (Feb 22, 2021). bug on F5 v13 (curl 7.47.1) where curl will not have spaces between header name and content. results in empty nonce variable. \# INFO: Using main config file /shared/letsencrypt/config \+ Generating account key... \+ Registering account key with ACME server... \+ ERROR: An error occurred while sending post-request to https://acme-staging-v02.api.letsencrypt.org/acme/new-acct (Status 400) Details: HTTP/2.0 400 server:nginx date:Mon, 22 Feb 2021 08:12:33 GMT content-type:application/problem+json content-length:112 cache-control:public, max-age=0, no-cache link:<https://acme-staging-v02.api.letsencrypt.org/directory>;rel="index" replay-nonce:00032j5SQTM3vKzMqhzyW6r4AH7qJNDWVNjqg-AaT41pFyM { "type": "urn:ietf:params:acme:error:badNonce", "detail": "JWS has no anti-replay nonce", "status": 400 }
adam closed this issue 2025-12-29 01:26:43 +01:00
Author
Owner

@lukas2511 commented on GitHub (Mar 21, 2021):

Hi, Thanks for bringing this up.
I've merged your pullrequest, but also rewrote it a minute later while fixing similar issues in the script. Really weird behaviour with the lowercase headers and no whitespace...

@lukas2511 commented on GitHub (Mar 21, 2021): Hi, Thanks for bringing this up. I've merged your pullrequest, but also rewrote it a minute later while fixing similar issues in the script. Really weird behaviour with the lowercase headers and no whitespace...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#522