Challenge failed when registering certificate

Hello! I'm pretty new into the topic, but I'd like to get a SSL certificate for my server. But, I'm stuck. I tried using Let's Debug (HTTP-01) and Let's Debug (DNS-01) but they return no issues. On this other site macrotech.do:8043 - Make your website better - DNS, redirects, mixed content, certificates it shows that my server is not available with an AAAA record. What can I do? :thinking:

My domain is: http://macrotech.do:8043

I ran this command: certbot --apache

It produced this output:

    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator apache, Installer apache
    No names were found in your configuration files. Please enter in your domain
    name(s) (comma and/or space separated)  (Enter 'c' to cancel): macrotech.do:8043
    Requesting a certificate for macrotech.do:8043
    Performing the following challenges:
    http-01 challenge for macrotech.do
    Enabled Apache rewrite module
    Waiting for verification...
    Challenge failed for domain macrotech.do
    http-01 challenge for macrotech.do
    Cleaning up challenges
    Some challenges have failed.

    IMPORTANT NOTES:
     - The following errors were reported by the server:

       Domain: macrotech.do
       Type:   unauthorized
       Detail: Invalid response from
       http://macrotech.do/.well-known/acme-challenge/FhJmVI6CnrT-uJR2BaxEYupdMlE6vA-ZPw-QpaNByi4
       [190.166.123.221]: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML
       4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Not
       Found</TITLE>\r"

       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): Apache/2.4.18

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

My hosting provider, if applicable, is: N/A

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 1.15.0

1 Like

Hi @vmontero

please read the basics:

and

A working port 80 is required, if you want to use --apache. Port 8043 is unrelevant.

PS: Your port 80 has a Microsoft-HTTPAPI/2.0, not an Apache.

Use a Windows client.

1 Like
curl -Iki http://macrotech.do/
HTTP/1.1 404 Not Found
Content-Length: 315
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 11 May 2021 16:00:10 GMT
Connection: close

Does your domain point to the correct IP?
Is there a firewall/NAT device in line?

1 Like

I'm actually checking it out with my infrastructure supervisor. Because for now it requires us to specify the port 8043 in order to connect through internet.

user@dahostname:~# curl -Iki http://macrotech.do/
HTTP/1.1 404 Not Found
Content-Length: 315
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 11 May 2021 16:06:19 GMT
Connection: close

user@dahostname:~# curl -Iki http://macrotech.do:8043/
HTTP/1.1 200 OK
Date: Tue, 11 May 2021 16:06:24 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Tue, 19 Feb 2019 02:07:32 GMT
ETag: "2c39-58235b43a2b52"
Accept-Ranges: bytes
Content-Length: 11321
Vary: Accept-Encoding
Content-Type: text/html
1 Like

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