mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
Challenge validation has failed #366
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 @shadow05139 on GitHub (Jul 28, 2018).
Im getting this when trying to renew cert
pi@hassbian:/home/homeassistant/dehydrated $ sudo ./dehydrated -c
INFO: Using main config file /home/homeassistant/dehydrated/config
Unknown hook this_hookscript_is_broken__dehydrated_is_working_fine__please_ignore_unknown_hooks_in_your_script
Processing homehub05139.duckdns.org
Unknown hook this_hookscript_is_broken__dehydrated_is_working_fine__please_ignore_unknown_hooks_in_your_script
OK
Unknown hook invalid_challenge
OK
ERROR: Challenge is invalid! (returned: invalid) (result: {
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:ietf:params:acme:error:connection",
"detail": "Fetching http://.duckdns.org/.well-known/acme-challenge/lTWkfYPlqBF-29Um4MCCUrjjWJw7ti-fmUEtUK8aiTA: Connection refused",
"status": 400
},
"url": "https://acme-v02.api.letsencrypt.org/acme/challenge/u8O0vLkYh1_uORor2xZOhtnQyqtnB6glBOBAmT2xng4/5999407215",
"token": "lTWkfYPlqBF-29Um4MCCUrjjWJw7ti-fmUEtUK8aiTA",
"validationRecord": [
{
"url": "http://.duckdns.org/.well-known/acme-challenge/lTWkfYPlqBF-29Um4MCCUrjjWJw7ti-fmUEtUK8aiTA",
"hostname": ".duckdns.org",
"port": "80",
"addressesResolved": [
""
],
"addressUsed": ""
}
]
})
@txr13 commented on GitHub (Jul 28, 2018):
You’re using http-01 validation, but the CA cannot resolve the name you are attempting to verify (addressesResolved is empty) and therefore cannot connect to do the validation.
More specifically, it looks like you have a broken domains.txt file. The CN is fine, but there’s a spurious “.duckdns.org” SAN with no subdomain on it. This is what cannot be validated.
@lukas2511 commented on GitHub (Jul 28, 2018):
This looks weird. You should take a look at your domains.txt, maybe some weird zero-width-space unicode character got in the middle of your hostname or something similar. Otherwise please post the output of
dehydrated -vand the content of your domains.txt.@shadow05139 commented on GitHub (Jul 29, 2018):
INFO: Using main config file /home/homeassistant/dehydrated/config
Dehydrated by Lukas Schauer
https://dehydrated.de
Dehydrated version: git-master-after-0.6.1
GIT-Revision:
52c2c19994OS: Raspbian GNU/Linux 8
Used software:
bash: 4.3.30(1)-release
curl: curl 7.38.0
awk: mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
sed: sed (GNU sed) 4.2.2
mktemp: mktemp (GNU coreutils) 8.23
grep: grep (GNU grep) 2.20
diff: diff (GNU diffutils) 3.3
openssl: OpenSSL 1.0.1t 3 May 2016
domains.txt has only one line
homehub05139.duckdns.org