mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-03 14:40:00 +01:00
Challenge is invalid #33
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 @KrisZane on GitHub (Jan 17, 2016).
So I am trying out this software just for kicks and seem to be getting a very odd error, that I can't find anything about:
Processing testdoman.com with alternative names: www.testdomain.com
ERROR: Challenge is invalid! (returned: invalid)
I can't really seem to find the reason for this error, even by inspecting the script?
@leahoswald commented on GitHub (Jan 17, 2016):
Looks like you have a problem with the challenge response system to authenticat that you are in control over the domain. Do you have created the folder and alias for the challenge-response system?
For nginx it looks like this:
For Apache:
Also you have to define the well known directory from above in the config:
config.sh:
@KrisZane commented on GitHub (Jan 17, 2016):
I have defined the wellknown directory and I am guessing the alias part for nginx is necessary for some sort of testing?
Is there a way to do it, without having to add and then remove an alias from the system?
@leahoswald commented on GitHub (Jan 17, 2016):
Yes you need the alias or have to customize the config a little to match your domains webroot. It is needed to allow letsencrypt read the response to the challenge they give to you to check if you are the owner of the domain you request a certificate for.
Well you could also use/define the well-known dir under every single domain in its webroot. Its a lot of manual overhead especially if you want to automate the certificate renewal. So the alias is a simple way to enable the automated renewal in an easy way even if you use your nginx as reverse proxy without a webroot at all. So you don't have to remove the alias after the initial certificate request because you need it again for renewal after 90 days at the latest.
@KrisZane commented on GitHub (Jan 17, 2016):
Well my problem is that nothing actually gets put in the well known dir (possibly because of the error), and I would like to manually test it out, before putting it in my central distribution software?
To clarify, if there is a way to generate the certificate from one server and then distribute it to our load balanced nginx proxies later on?
@leahoswald commented on GitHub (Jan 17, 2016):
ok, than the following should work. Change the config.sh to:
@KrisZane commented on GitHub (Jan 17, 2016):
Well that is what I have already done and that is what is giving me the error. :)
@lukas2511 commented on GitHub (Jan 17, 2016):
The alias in the nginx config should exist so that nginx can deliver the challenge responses.
If you didn't configure it properly you should at least see a 404 or something similar in your webservers access-log.
Challenge responses get cleaned up even after errors, so you will not see any files there after the script stopped.
You can use the possibility to configure hooks to upload a file over ftp or something else, but you'll have to write a function or script for that.
There is a little bit more information about how to use hooks in
config.sh.example.Since this doesn't seem to be a problem with letsencrypt.sh I'll close this issue for now.
@bittorf commented on GitHub (Feb 18, 2016):
i wonder why WELLKNOWN is unset during script-startup. if not we can just invoke like this and it works without changing anything:
@flittermice commented on GitHub (Mar 10, 2016):
I had the same promlem like KrisZane.
It turned out that my server didn't respond to normal HTTP requests. So I reopened port 80 and made a virtual host for HTTP:
Listen 80
<VirtualHost *:80>
ServerName xxxxxx.eu
DocumentRoot /var/www/html
=> Works great now.
Thanks for sparing me the use of the bloated official client!
@Petelin commented on GitHub (Nov 10, 2016):
WELLKNOWN="/path/to/your/domain/webroot/" work for me. thanks.
@TyrfingMjolnir commented on GitHub (Sep 12, 2017):
I have this same issue, I added a file named "1.txt" in the folder owned by www:www just for testing
Excerpt from log:
@txr13 commented on GitHub (Sep 12, 2017):
@TyrfingMjolnir This is a very old issue, and has been closed for almost 21 months now. Would you like to open a new issue?