Deleted Certbot and Apache and cannot get certs back

My domain is: haywalk.ca

I ran this command: sudo certbot --apache

It produced this output:

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for haywalk.ca
http-01 challenge for www.haywalk.ca
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. haywalk.ca (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://haywalk.ca/.well-known/acme-challenge/WqEg6qaaTu5613go_4rQWlrjOGnYh53ViMa8mVukBHI [99.192.121.162]: "\n\n404 Not Found\n\n

Not Found

\n<p", www.haywalk.ca (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.haywalk.ca/.well-known/acme-challenge/AcapdcWn283z3DxWIk_Xt11SuOPwXKoyDQCKLC7DklY [99.192.121.162]: "\n\n404 Not Found\n\n

Not Found

\n<p"

IMPORTANT NOTES:

My web server is (include version): Apache 2.4.38

The operating system my web server runs on is (include version): Raspbian GNU/Linux 10 (buster) arrmv71

My hosting provider, if applicable, is: GoDaddy Canada

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.31.0

I ran into an issue with Apache and purged everything - all the folders, Certbot included. Now I'm getting these errors. I'm a beginner to running a web server (started as a hobby 8 months ago) and I would appreciate any help!

2 Likes

Hi Hayden and welcome to the LE community!

Your Apache config may need some help.
Please show the output of:
sudo apachectl -S

3 Likes

Thank you! I appreciate your help! I figured it out - when I was fiddling with my Pi server I had rerouted all traffic to my laptop, on which I was running a "sorry, my server broke" page. I changed my port forwarding settings to point to my server, then did the certificate request again and it worked like a charm!

4 Likes

https://www.files.haywalk.ca/
is throwing an error. You might need to expand your certificate.

3 Likes