dehydrated/Apache - Challenge is invalid! (returned: invalid)

My domain is: data2023.ddns.net

I ran this command: dehydrated -c

It produced this output:
'# INFO: Using main config file /etc/dehydrated/config'
'# INFO: Running /usr/bin/dehydrated as gone/wheel'
'# INFO: Using main config file /etc/dehydrated/config'
Processing data2023.ddns.net

My web server is: Apache/2.4.58 (Unix)

The operating system my web server runs on is: Slackware x86_64 (post 15.0 -current)

My hosting provider, if applicable, is: No-ip

I can login to a root shell on my machine: yes

I'm using a control panel to manage my site: no

The version of my client is: Dehydrated version: 0.7.1
GIT-Revision: unknown
Used software:
bash: 5.2.15(1)-release
curl: 8.4.0
awk: GNU Awk 5.3.0, API 4.0, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)
sed: sed (GNU sed) 4.9
mktemp: mktemp (GNU coreutils) 9.4
grep: grep (GNU grep) 3.11
diff: diff (GNU diffutils) 3.10
openssl: OpenSSL 3.1.4 24 Oct 2023 (Library: OpenSSL 3.1.4 24 Oct 2023)

Hi @gonesb, and welcome to the LE community forum :slight_smile:

Based solely on the 404 and Apache, I would start by checking that no name:port overlap(s) exist.
Show:
sudo apachectl -t -D DUMP_VHOSTS

3 Likes

Thank you @rg305.

# apachectl -t -D DUMP_VHOSTS
VirtualHost configuration: *:443 data2023.ddns.net (/etc/httpd/extra/httpd-ssl.conf:121)

1 Like

If that is the entire output, I can't see how it can handle HTTP-01 authentication requests.
Maybe dehydrated doesn't use HTTP-01 authentication...
Let me update your topic title to draw attention to that.

3 Likes

Ok, go ahead.
Yes that is the entire output. I configured dehydrated to use "http-01", it should be using it, right?

# cat /etc/dehydrated/config
DEHYDRATED_USER=user
DEHYDRATED_GROUP=wheel
CA="https://acme-staging-v02.api.letsencrypt.org/directory"
#CA="https://acme-v02.api.letsencrypt.org/directory"
CHALLENGETYPE="http-01"
DOMAINS_TXT="${BASEDIR}/domains.txt"
CERTDIR="${BASEDIR}/certs"
ACCOUNTDIR="${BASEDIR}/accounts"
WELLKNOWN="/usr/local/dehydrated"
#HOOK=/etc/dehydrated/hook.sh
PRIVATE_KEY_RENEW="no"
CONTACT_EMAIL=
`LOCKFILE="${BASEDIR}/var/lock"``

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.