Certbot failed to authenticate some domains

Hello, im trying to create a project and i was following along this Youtube tutorial which i will link here : https://youtu.be/8Uofkq718n8?si=_B34Et_VJBaRYp1h

Everything was going smooth until the end where i have to use certbot to get the cert for my domain. It continues to fail and i feel i am having no luck fixing this issue and its been a couple of days i have been stuck with this.I cant figure out what i am missing. Any help is much appreciated.

My config file looks like this i don't believe im missing anything:

<VirtualHost *:80>

# The ServerName directive sets the request scheme, hostname and port t>
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        Documentroot /var/www/html/wordpress

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ServerName mywpsample.tech
        ServerAlias www.mywpsample.tech


        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf

My domain is: mywpsample.tech

I ran this command: sudo certbot --apache
to try and get a certificate for my site

It produced this output:

Domain: www.mywpsample.tech
  Type:   unauthorized
  Detail: 2a02:4780:b:969:0:9e8:58b8:2: Invalid response from http://www.mywpsample.tech/.well-known/acme-challenge/3UQFhUFz4tUw8V2sf7LLQH6M-RZtOcPj4hChTflR4sg: 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.

this all on apache2

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

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 --version.

Im pretty new to this so im sorry if i might have overlooked something really simple, regardless thank you.

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

Your domain has two IP addresses:

Name:      mywpsample.tech
Addresses: 2a02:4780:b:969:0:9e8:58b8:2
           54.215.62.193
Aliases:   www.mywpsample.tech

The IPv6 address [DNS AAAA] should be removed [or changed to point to your server].

4 Likes

wow i cant believe i didnt see that sooner and that actually fixed the issue thank you much for the help.

2 Likes

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