Failed creating cert using certbot on ubuntu 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: basisit.net

I ran this command: certbot certonly --standalone

It produced this output: Invalid response from http://xxxxxxx

My web server is (include version): apache/2.4.58 Ubuntu

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

My hosting provider, if applicable, is: selfhosted on Hyper-V

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 3.3.0

Hi

So I´ve emptied the var/www/basisit folder, which is the root,
stopped the apache 2 webserver.

Port 80 is open when the webserver is enabled and I´ve tested and can see index.php when using basisit.net in the browser.

Help would be greatly appriciated

Is that IPv6 address pointing to your server? Is your server listening on IPv6?

Sorry, I just checked.
So I dont use IPv6.

I can see the AAAA IPv6 was configured to point to my previous host provider......
Now the AAAA has been deleted. since I´m not using IPv6

Perhabs it will work in some hours :slight_smile:

SOLVED.
as @9peppe suggested, it was a problem with the DNS IPv6.

I removed the AAAA record from the dns server and the it worked.

THANKS!