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. 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: d3.geoffrussell.com.au

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

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

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: d3.geoffrussell.com.au
    Type: connection
    Detail: Fetching
    http://d3.geoffrussell.com.au/.well-known/acme-challenge/rFJCmcC6zqDcbFNOo5TXQla4CCK_OkoQp5qrc-d6NdQ:
    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 https://d3.geoffrussell.com.au/index.html )
–2020-06-13 16:16:23-- https://d3.geoffrussell.com.au/index.html
Resolving d3.geoffrussell.com.au (d3.geoffrussell.com.au)… 203.122.232.225
Connecting to d3.geoffrussell.com.au (d3.geoffrussell.com.au)|203.122.232.225|:443… connected.
WARNING: no certificate subject alternative name matches
requested host name 'd3.geoffrussell.com.au’.
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.

Cheers,
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 d3.geoffrussell.com.au
    Unable to set enhancement redirect for d3.geoffrussell.com.au
    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 - d3.geoffrussell.com.au - 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.