Invalid response from

My domain is:

I ran this command: sudo certbot --apache

It produced this output:

 - The following errors were reported by the server:

   Type:   unauthorized
   Detail: Invalid response from
   2.0//EN\">\n<html><head>\n<title>404 Not
   Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

My web server is (include version): Ubuntu 18.04.2 LTS

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

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

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

Hi @CapuzDE

looks like Certbot doesn’t understand your config.

The main things are ok (checked with ):

Domainname Http-Status redirect Sec. G 200 0.293 H -2 1.057 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 404 0.034 A
Not Found

There is no older certificate, so https doesn’t work. But port 80 is open, /.well-known/acme-challenge has the correct http status 404.

So check your vHost to find your DocumentRoot, then use it:

certbot run -a webroot -i apache -w yourDocumentRoot -d

Your domain has this IP address, as shown in the error message:  300  A

The Server header is “Apache/2.4.10 (Debian)”. includes an iframe for but every other path returns a 404 Not Found error.

It looks like the domain is using some sort of web forwarding service that has a design incompatible with ACME HTTP-01 validation.

If that’s what’s going on, you should change the A record to use your real IP address, or maybe switch to a forwarding service with a different design.

(Plus, does it support HTTPS?)

Edit: This post was totally rewritten. is my Domainhoster (

It is compatible

Not helped.

On which ip is certbot running?

If there is a dns entry ->, then Certbot must run on this ip address.

So Certbot can create a file under

so Letsencrypt fetches that file via

If your dns entry points to another webspace, that can’t work.

What are you using for, anyway?

Apparently it’s not.

Maybe some of their other services are, or it can be configured to be, but it isn’t right now.

How can I find out? I have no idea about domain administration

What can i do now?

Run ifconfig to see your ip address

root@vmd32080:~# ifconfig
ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet netmask broadcast
ether 00:50:56:3c:45:9e txqueuelen 1000 (Ethernet)
RX packets 3535600510 bytes 320127099312 (320.1 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 175483990 bytes 26215189367 (26.2 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet netmask
loop txqueuelen 1000 (Local Loopback)
RX packets 303005637 bytes 106783010686 (106.7 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 303005637 bytes 106783010686 (106.7 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

There is your internet address. So it can’t work if your dns entry has the ip

Are you able to configure the webserver running

So that you create a vHost with as ServerName.

But there is another problem: If this is only a frame, you can’t use the certificate with your domain name, because you can’t install the certificate.

When you say me how, i think yes.

This ip - there is an Apache ( ).

So check your Apache config file to see if there are vHosts. Something like

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

Create a new file in /sites-available and add ServerName

looks good.

Last step: Change your dns entry your domain -> your new ip.

I did everything in the introduction, but I do not get the page from /var/www/ open via

Your domain doesn’t have an ip address:

Host T IP-Address is auth. ∑ Queries ∑ Timeout A yes 1 0
AAAA yes Name Error yes 1 0

You have removed the old address, but you have to add an A-entry with the 207 - ip address.

How i can made this?

Check your domain management, there you can create DNS entries.

There a new A record is required: -> ip address of your server.

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