I am following this guide to install Seafile on my Raspberry Pi but am getting an error when trying to get my HTTPS certificate. I purchased a domain (leatherwood.cloud) on NameSilo and added an A record that pointed to my public ipv4 address (found using https://whatismyipaddress.com). There was no ipv6 address detected so I didn't add an AAAA record. I waited for this to update then tried to run the following command to get my certificate:
sudo certbot certonly --nginx --domain leatherwood.cloud
However, I got this error saying that the HTTP-01 challenge failed:
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for www.leatherwood.cloud
Performing the following challenges:
http-01 challenge for www.leatherwood.cloud
Waiting for verification...
Challenge failed for domain www.leatherwood.cloud
http-01 challenge for www.leatherwood.cloud
Cleaning up challenges
Some challenges have failed.
I tried multiple times and also tried using the above command with "www.leatherwood.cloud" instead as well as removing the following DNS entries (that came preloaded when I purchased the domain):
Each time returned the same error. I also tried adding another DNS entry with the same IP address and the hostname "www".
It mentions that port 80 needs to be open - does this port come open by default or do I need to use iptables
to open it up? I am also using a WiFi network that comes with my apartment; I am not sure if not having access to the router could be causing the issue. Does the domain need to be hosted for this to work? From what I understand, the site would be hosted off of my Raspberry Pi and I don't need to pay for hosting.
My domain is: leatherwood.cloud
I ran this command: sudo certbot certonly --nginx --domain leatherwood.cloud
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for www.leatherwood.cloud
Performing the following challenges:
http-01 challenge for www.leatherwood.cloud
Waiting for verification...
Challenge failed for domain www.leatherwood.cloud
http-01 challenge for www.leatherwood.cloud
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.leatherwood.cloud
Type: connection
Detail: 72.196.44.14: Fetching
http://www.leatherwood.cloud/.well-known/acme-challenge/KNj5KZ3gaVKvHjdj4TUcrQzexsDUbZ9JKDQGQRNyLZg:
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): Nginx 1.18.0
The operating system my web server runs on is (include version): Raspberry Pi OS 11 (bullseye)
I can login to a root shell on my machine: yes
I'm using a control panel to manage my site: NameSilo Domain Manager
The version of my client is: certbot 1.12.0