Hello
I’ve messed things up on the server I use for my school classes. Hoping someone can help me. I’ve read through a lot of similar posts on this forum, but no fixes / advice seems to directly apply to my problem.
My server is used for web development by lots of classes, so is setup to serve pages from user home folders, as well as the main web root. It also hosts some other services such as a Moodle install, a Jobe code server, etc.
Everything was working beautifully until I broke things this morning…
What I did… Previous cert had expired yesterday (I’d not set up an auto-renew) and I tried to renew today. This failed (challenge failed), so I thought I’d be ‘smart’ and remove all traces of previous certs and obtain a new one. This failed, so I removed certbot and all traces of it, and reinstalled. Also disabled the Apache SSL site. Tried to obtain a new cert. This failed.
So I’m stuck with a working server on port 80 (I’ve temporarily removed the redirect rule for HTTP->HTTPS) but I can’t get a cert setup to allow me to switch back to HTTPS. Nothing seems to work, and I’m stuck.
Any help/advice appreciated
Steve
P.S. The Apache site conf is not just simple one. I can post it if it’ll help. Also the conf for the SSL site that’s presently disabled.
My domain is: dt.waimea.school.nz
I ran this command:
sudo certbot --apache -d dt.waimea.school.nz
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for dt.waimea.school.nz
Waiting for verification...
Challenge failed for domain dt.waimea.school.nz
http-01 challenge for dt.waimea.school.nz
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: dt.waimea.school.nz
Type: connection
Detail: Fetching
http://dt.waimea.school.nz/.well-known/acme-challenge/8-74qKVH_C2NQLBemXWGewmo7JZ2UX6YYztC4uDPzFY:
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.41 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 20.04 LTS
My hosting provider, if applicable, is: Self-hosted
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 0.40.0