My domain is: repo.spirhr.org (which is self hosted, an apache named virtual host reverse proxy for a tomcat server)
I ran this command:
sudo certbot certonly --apache
It produced this output:
Obtaining a new certificate Performing the following challenges: http-01 challenge for repo.spirhr.org Waiting for verification... Challenge failed for domain repo.spirhr.org http-01 challenge for repo.spirhr.org Cleaning up challenges Some challenges have failed. IMPORTANT NOTES: - The following errors were reported by the server: Domain: repo.spirhr.org Type: connection Detail: Fetching http://repo.spirhr.org/.well-known/acme-challenge/xaexeDBv3PdUdSzt4skLft74Xv-KkytDyWj6isaDczw: Connection reset by peer 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):
The operating system my web server runs on is (include version):
Ubuntu 20.04.1 LTS (Focal Fossa). It is a Virtualbox VM running on
Ubuntu 18.04.3 LTS host.
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):
I have port 80 and 443 open on the server. I have already issued 3 certificates for other configured Apache named virtual hosts on this server (trying to renew these also fails with the same error). The strange thing is I can see the ‘apache’ plugin is creating the challenge file at
/var/lib/letencrypts/http_challenges and also properly modifying the Apache server configuration file for this virtual host. There is no firewall rule that is blocking requests to port 80. I can even access the challenge url (http://repo.spirhr.org/.well-known/acme-challenge/***) from my browser if I stopped certbot in time before it cleans it up and revert the Apache configuration changes. What could be wrong?
Thank you for your help.