mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
dehydrated 0.5.0: dehydrated -c -g stops after first domain
#276
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 @basbebe on GitHub (Feb 6, 2018).
Since dehydrated 0.5.0, when I run
dehydrated -c -gonly the first domain in mydomains.txtis being checked / renewed.The cron job works as expected (run via FreeBSD periodic scripts), but when I run it manually only one domain gets checked.
@lukas2511 commented on GitHub (Feb 6, 2018):
Can you provide any more information on this? Is there a weird exit code? Are you running dehydrated with bash or zsh? Can you post the output of
dehydrated -vplease?@basbebe commented on GitHub (Feb 6, 2018):
There is no exit code – the execution just ends (note that since I added an alias for the first domain, the first two lines are being executed):
This is my main config (note that for some reason the file
registration_info.jsondoes not exist:This is my
domains.txt:and this is my
www.[XXX].com.ecdsa/config:@lukas2511 commented on GitHub (Feb 6, 2018):
Mh, can you check if it works when disabling
OCSP_FETCH?@lukas2511 commented on GitHub (Feb 6, 2018):
And please run
bash -x dehydrated -c -gand paste the last few dozen lines, that would show where it stops.@basbebe commented on GitHub (Feb 6, 2018):
yes, it works when disabling
COSP_FETCHAny information on why I don't have the file
registration_info.json?And: Is IP_VERSION on a per-certificate basis planned for future releases?
Thanks!
These are the last few dozen lines:
@lukas2511 commented on GitHub (Feb 6, 2018):
IP_VERSIONis only for communication with the CA not the other way around, so it doesn't make sense on a per-certificate basis.registration_info.jsonis only created in more recent versions of dehydrated, if you have a very old account key that file just was never generatedUnfortunately I kinda posted you the directions in the wrong order so now I see only the trace of a fully working run. Could you try removing
ocsp.derfor one of your certificates and run the debug command again? I'm guessing it fails on the openssl command... which openssl version are you using?@basbebe commented on GitHub (Feb 6, 2018):
It does work in any case with OpenSSL (just checked)
@lukas2511 commented on GitHub (Feb 6, 2018):
Meh... I kinda guessed that would be the problem, the syntax probably is a bit different...
Would you mind going into the script, look for the line containing
if grep -qE "^(0|(1\.0))\." <<< "$(${OPENSSL} version | awk '{print $2}')"; thenand replace the whole line with aif true; then. It should then use the syntax for the old OpenSSL version, I'm wondering if that might actually do the trick...@lukas2511 commented on GitHub (Mar 11, 2018):
Since
c0bcf91410dehydrated will show an error message if fetching of the ocsp stapling file fails. Since enabling this kinda shows that the user needs and may rely on it I'll keep this as a hard failure.