Challenge failed for domain

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. https://crt.sh/?q=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:afsfield.com

I ran this command: sudo 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): zen-afs-hb1.afsfield.com
Requesting a certificate for zen-afs-hb1.afsfield.com
Performing the following challenges:
http-01 challenge for zen-afs-hb1.afsfield.com
Enabled Apache rewrite module
Waiting for verification...
Challenge failed for domain zen-afs-hb1.afsfield.com
http-01 challenge for zen-afs-hb1.afsfield.com
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: zen-afs-hb1.afsfield.com
    Type: connection
    Detail: Fetching
    http://zen-afs-hb1.afsfield.com/.well-known/acme-challenge/*************
    Timeout during connect (likely firewall problem)

    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. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you're using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

My web server is (include version): apache 2.4.29

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

My hosting provider, if applicable, is: self

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

1 Like

Hi @afsfire,

In order to use this method, you have to have an Apache server that is already accepting connections from the Internet on port 80 (HTTP). That's not the case for your server right now: http://zen-afs-hb1.afsfield.com/ doesn't work in a browser or with curl. It might be blocked by a firewall or something.

Edit: Also, normally your Apache server should have an HTTP VirtualHost that specifically lists the name(s) for which you want to get a certificate. In that case, Certbot won't prompt you with No names were found in your configuration files. and it will create a new HTTPS VirtualHost based on the existing HTTP version.

3 Likes

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