Certificate validation failed

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: yourtop.news

I ran this command: certbot --apache

It produced this output: when select domain I get this
certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?


1: yourtop.news
2: mail.yourtop.news
3: roundcube.yourtop.news
4: www.yourtop.news
5: zupanje.yourtop.news


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for yourtop.news

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: yourtop.news
Type: unauthorized
Detail: 31.15.171.21: Invalid response from https://yourtop.news/.well-known/acme-challenge/uv8DGVGv9pBo87z_0MaMw9QfZmd_rCZl7jWgQVxlxa8: 404

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version): Apache/2.4.37

The operating system my web server runs on is (include version): centos 8

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 1.22.0

As with all things Apache related, I always prefer to begin with the output of:
sudo apachectl -t -D DUMP_VHOSTS

2 Likes

That needs an update.
See: CentOS Linux EOL

2 Likes

You are using the --apache authenticator but I don't see you using Apache. Instead, I see a lighttpd server.

curl -i http://yourtop.news/.well-known/acme-challenge/Test404
HTTP/1.1 301 Moved Permanently
location: https://yourtop.news/.well-known/acme-challenge/Test404

curl -ik https://yourtop.news/.well-known/acme-challenge/Test404
HTTP/2 404
server: lighttpd/ACME

I don't know much about lighttpd but you probably need to use --webroot method. Perhaps this earlier thread will help

2 Likes

Weird, does lighttpd have a built-in ACME client or something? :thinking:

1 Like

Don't know. Looks like. Didn't see in google or quick check of lighttpd docs. I did see some change notes about acme/tls fixes. Which hints at such a thing and TLS-ALPN support.

But, we both know that uses port 443 and not 80 like this HTTP Challenge try.

@9peppe Do you know anything about this lighttpd/ACME?

2 Likes

Yeah, it's not compatible with this usage of Certbot with the --apache plugin.

1 Like

Never seen it before. A cursory look might suggest this is associated to opnsense -- or something other than the intended machine is answering, a missing port forward perhaps.

2 Likes

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