Can't generate certificate for 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., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: (in /usr/local/letsencrypt) sudo ./letsencrypt-auto --apache -d

It produced this output:
Waiting for verification…
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.


  • The following errors were reported by the server:

    Type: connection
    Detail: Fetching
    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): Server version: Apache/2.4.18 (Ubuntu)

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

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

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

Just to be clear … I can wget from the domain as follows … so I don’t know why the software suspects a firewall problem.

(cd /tmp && wget --no-check-certificate )
–2020-06-13 16:16:23--
Resolving (…
Connecting to (||:443… connected.
WARNING: no certificate subject alternative name matches
requested host name '’.
HTTP request sent, awaiting response… 200 OK
Length: 52 [text/html]
Saving to: 'index.html.1’

index.html.1 100%[===================>] 52 --.-KB/s in 0s

2020-06-13 16:16:23 (1.68 MB/s) - 'index.html.1’ saved [52/52]

Many thanks for your attention.

Geoff Russell

1 Like

NB … port 80 is blocked. Maybe I’ll try unblocking that !

1 Like
  1. Success … the certificate is installed and kind-of working … but I don’t know what the
    Failed redirect for
    Unable to set enhancement redirect for
    Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
  2. When I say “kind-of” … I think Chrome is caching the “insecure” message, but I think that will vanish in due course!
1 Like

Hi @GeoffRussell

Certbot can't understand your configuration, so it's impossible to create a correct redirect.

Checking your domain - - Make your website better - DNS, redirects, mixed content, certificates - your http port is blocked again, so a redirect would be invisible.

https works.

apachectl -S
1 Like

No worries … I’ve got what I need and appreciate all the work that goes into free software! Time to make a donation :slight_smile:

1 Like

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