mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
ERROR: Challenge is invalid! (returned: ) (result: <<string>>) #310
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tjharman on GitHub (Mar 18, 2018).
Hi,
I am not 100% sure this is a dehydrated issues, however it's just started on two different servers I control.
I can't seem to create ECC certificates anymore, only RSA ones.
I have the following script I run every couple of weeks to generate my certs:
Today I did a git pull to ensure I'm at the latest, and recieved this:
RSA certs renewed no problems.
But ECC gives me this:
I have been getting a similar problem with ECC certs on another box for other *.muppetz.com domains, the "ERROR: Challenge is invalid! (returned: ) (result: )" using the latest dehydrated, but I had assumed this was a rate-limit error on that machine and ignored it for the moment.
I have no problems accessing the /.well-known/acme-challenge/XXXX URL - this has been setup in Apache for the last ~year with no issues (and works, as you can see in the RSA request)
What does "ERROR: Challenge is invalid! (returned: ) (result: <>)" mean?
As I stated above, I thought on my other box it was a rate limit issue, but I have tried only twice to renew these ECC certs and am sure I'm not being rate limited yet.
@tjharman commented on GitHub (Mar 18, 2018):
So I thought I'd test on a third server I have, this one runs nginx.
This is now really confusing me:
@lukas2511 commented on GitHub (Mar 18, 2018):
This is really weird... dehydrated shouldn't try to access the
http://whatever/.well-known/...URL itself, especially not with a post request... The only way I see this would be possible is if challenge_uris somehow contains that url... which would be really weird... Can you please modify the code a bit and show me the result:@lukas2511 commented on GitHub (Mar 18, 2018):
And please post the output of
dehydrated --versionso I can get an idea about the environment you are running dehydrated in.@tjharman commented on GitHub (Mar 18, 2018):
@tjharman commented on GitHub (Mar 18, 2018):
I should note, the NGINX server is the 3rd server I'm having problems with.
The previous two that I posted where I get the ERROR: Challenge is invalid! (returned: ) (result: <>) are Apache2 servers.
Here's the (modified) output from the main one I wish to fix!
@lukas2511 commented on GitHub (Mar 18, 2018):
Aww crap I don't think i've ever seen that validationRecord before, dehydrated matches on that, that's why the url is broken...
Can you try this patch?
I'm going to soon replace all the JSON parsing in dehydrated with parts of JSON.sh, that should avoid issues like this in the future...
@lukas2511 commented on GitHub (Mar 18, 2018):
Btw. this issue should only occur while using the
--force (-x)parameter, normal operation shouldn't be affected.@tjharman commented on GitHub (Mar 18, 2018):
Can confirm, your patch fixes the problem for me!
Thank you:
This has also fixed the problem on my two other boxes!
THANK YOU! :-)