Certbot failed to authenticate some domains (authenticator: apache)

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: ou2in.in

I ran this command: certbot --apache

It produced this output:Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: ou2in.in
Type: unauthorized
Detail: 2a02:4780:1:1009:0:352c:e196:10: Invalid response from http://ou2in.in/.well-known/acme-challenge/KwVr8DEhPcW8doU2dY04wHQQyVwEEyCDB-WrR_4i0No: 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.

My web server is (include version): Server version: Apache/2.4.6 (CentOS)

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

My hosting provider, if applicable, is: hostinger

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):no

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

Welcome @abhinav

In your DNS, you have an A record for IPv4 and an AAAA record for IPv6. Let's Encrypt prefers IPv6 when present.

Your AAAA IP address points to a LiteSpeed server. I am pretty sure Hostinger set that up by default. You should correct the value in that AAAA record to be your public IPv6 address. Or, remove the AAAA record if you do not have IPv6 support.

[Address=2a02:4780:1:1009:0:352c:e196:10,Address Type=IPv6,Server=LiteSpeed,HTTP Status=404]
vs
[Address=103.95.50.10,Address Type=IPv4,Server=Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.5.38,HTTP Status=404]

From

4 Likes

Thanks Mark for snipper solution it exactly worked and solved my issue. Million thanks champ.

3 Likes

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