ERROR: Challenge is invalid! (returned: invalid) #342

Closed
opened 2025-12-29 01:23:23 +01:00 by adam · 5 comments
Owner

Originally created by @tjharman on GitHub (Apr 26, 2018).

I am using this command to update my certificates:

/usr/local/dehydrated/dehydrated -c -x -k ./beaker-ecc.sh -d muppetz.com -d beaker.muppetz.com -d www.muppetz.com -d tjharman.com -d www.tjharman.com -d old.tjharman.com -d lice.muppetz.com -d gallery.tjharman.com -d matchboxdigital.co.nz -d www.matchboxdigital.co.nz -o /etc/letsencrypt/ecc -a secp384r1

This is the log:

 + 10 pending challenge(s)
 + Deploying challenge tokens...
 + Responding to challenge for beaker.muppetz.com authorization...
 + Challenge is valid!
 + Responding to challenge for gallery.tjharman.com authorization...
 + Challenge is valid!
 + Responding to challenge for lice.muppetz.com authorization...
 + Challenge is valid!
 + Responding to challenge for matchboxdigital.co.nz authorization...
 + Challenge is valid!
 + Responding to challenge for muppetz.com authorization...
 + Challenge is valid!
 + Responding to challenge for old.tjharman.com authorization...
 + Challenge is valid!
 + Responding to challenge for www.matchboxdigital.co.nz authorization...
 + Challenge is valid!
 + Responding to challenge for www.muppetz.com authorization...
 + Challenge is valid!
 + Responding to challenge for www.tjharman.com authorization...
 + Cleaning challenge tokens...
 + Challenge validation has failed :(
ERROR: Challenge is invalid! (returned: invalid) (result: {
  "type": "http-01",
  "status": "invalid",
  "error": {
    "type": "urn:ietf:params:acme:error:connection",
    "detail": "Fetching https://tjharman.com.well-known/acme-challenge/FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg: Error getting validation data",
    "status": 400
  },
  "url": "https://acme-v02.api.letsencrypt.org/acme/challenge/Gzt4EWQlA-3N1gF5m5RnL--1l-C431PLk2sJmgY-bRE/4389580035",
  "token": "FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg",
  "validationRecord": [
    {
      "url": "https://tjharman.com.well-known/acme-challenge/FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg",
      "hostname": "tjharman.com.well-known",
      "port": "443"
    },
    {
      "url": "http://www.tjharman.com/.well-known/acme-challenge/FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg",
      "hostname": "www.tjharman.com",
      "port": "80",
      "addressesResolved": [
        "103.247.152.88"
      ],
      "addressUsed": "103.247.152.88"
    }
  ]
})

For some reason my URL is http://tjharman.com.well-known ?

Is there a parsing error here?

I am using commit 89de83c994

Originally created by @tjharman on GitHub (Apr 26, 2018). I am using this command to update my certificates: `/usr/local/dehydrated/dehydrated -c -x -k ./beaker-ecc.sh -d muppetz.com -d beaker.muppetz.com -d www.muppetz.com -d tjharman.com -d www.tjharman.com -d old.tjharman.com -d lice.muppetz.com -d gallery.tjharman.com -d matchboxdigital.co.nz -d www.matchboxdigital.co.nz -o /etc/letsencrypt/ecc -a secp384r1` This is the log: ``` + 10 pending challenge(s) + Deploying challenge tokens... + Responding to challenge for beaker.muppetz.com authorization... + Challenge is valid! + Responding to challenge for gallery.tjharman.com authorization... + Challenge is valid! + Responding to challenge for lice.muppetz.com authorization... + Challenge is valid! + Responding to challenge for matchboxdigital.co.nz authorization... + Challenge is valid! + Responding to challenge for muppetz.com authorization... + Challenge is valid! + Responding to challenge for old.tjharman.com authorization... + Challenge is valid! + Responding to challenge for www.matchboxdigital.co.nz authorization... + Challenge is valid! + Responding to challenge for www.muppetz.com authorization... + Challenge is valid! + Responding to challenge for www.tjharman.com authorization... + Cleaning challenge tokens... + Challenge validation has failed :( ERROR: Challenge is invalid! (returned: invalid) (result: { "type": "http-01", "status": "invalid", "error": { "type": "urn:ietf:params:acme:error:connection", "detail": "Fetching https://tjharman.com.well-known/acme-challenge/FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg: Error getting validation data", "status": 400 }, "url": "https://acme-v02.api.letsencrypt.org/acme/challenge/Gzt4EWQlA-3N1gF5m5RnL--1l-C431PLk2sJmgY-bRE/4389580035", "token": "FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg", "validationRecord": [ { "url": "https://tjharman.com.well-known/acme-challenge/FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg", "hostname": "tjharman.com.well-known", "port": "443" }, { "url": "http://www.tjharman.com/.well-known/acme-challenge/FnaK7v52ZkQn43VitAr9Vav9SriOxC4bFrg_RdvvHWg", "hostname": "www.tjharman.com", "port": "80", "addressesResolved": [ "103.247.152.88" ], "addressUsed": "103.247.152.88" } ] }) ``` For some reason my URL is http://tjharman.com.well-known ? Is there a parsing error here? I am using commit 89de83c99428481d880aac6f9702f4ecea38fa53
adam closed this issue 2025-12-29 01:23:24 +01:00
Author
Owner

@lukas2511 commented on GitHub (Apr 27, 2018):

This is an issue with your webserver (probably Apache) configuration, not an issue with dehydrated. Fix your SSL redirect by adding a / to the end.

@lukas2511 commented on GitHub (Apr 27, 2018): This is an issue with your webserver (probably Apache) configuration, not an issue with dehydrated. Fix your SSL redirect by adding a `/` to the end.
Author
Owner

@tjharman commented on GitHub (Apr 27, 2018):

OMG I was missing a /

I am so, so sorry for wasting your time.

@tjharman commented on GitHub (Apr 27, 2018): OMG I was missing a / I am so, so sorry for wasting your time.
Author
Owner

@lukas2511 commented on GitHub (Apr 27, 2018):

@tjharman don't worry, I got used to this by now ;)

@lukas2511 commented on GitHub (Apr 27, 2018): @tjharman don't worry, I got used to this by now ;)
Author
Owner

@tjharman commented on GitHub (Apr 27, 2018):

I'm sure, but I still made another small donation by way of apology.

@tjharman commented on GitHub (Apr 27, 2018): I'm sure, but I still made another small donation by way of apology.
Author
Owner

@lukas2511 commented on GitHub (Apr 27, 2018):

@tjharman hehe, apology accepted ;)

@lukas2511 commented on GitHub (Apr 27, 2018): @tjharman hehe, apology accepted ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#342