Hi! I'm new here and to the realm of self-hosting, networking/security, and Linux in general. I had some time off, so I decided to start a self-hosting project with a Raspberry Pi 3 B+ I had laying around. I've got everything set up in a Docker containers and now my next step is to set certain ported apps (i.e. http://localhost:XXXX) to be securely accessible (as opposed to port forwarding) through a domain that I've purchased via IONOS. I'm following this guide to presumably do so using nginx: How to Set Up letsencrypt with Nginx on Docker. I've scraped through every post here and what returned on Google with a similar issue or even directly related to IONOS, but they don't seem to solve my problem or it's simply not clicking. I've tried removing A and AAAA, but then it's another error where Type: dns. I was hoping someone could hand hold this newbie into figuring out why certbot isn't working for me. Please let me know if this should be posted elsewhere or if I need to provide anything additional!
My domain is: lejaregg.io
I ran this command:
docker compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ --dry-run -d lejaregg.io
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Simulating a certificate request for lejaregg.io
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: lejaregg.io
Type: unauthorized
Detail: 2607:f1c0:100f:f000::200: Invalid response from http://lejaregg.io/.well-known/acme-challenge/YwaM0LTmLUkSUOi7EMwLMmzugAxVag16aIuQYN-5-7Y: 204
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: lejaregg.io
Type: dns
Detail: no valid A records found for lejaregg.io; no valid AAAA records found for lejaregg.io
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
My web server is (include version): Sorry, I'm not certain.
The operating system my web server runs on is (include version): DietPi v8.25.1
My hosting provider, if applicable, is: For my domain? IONOS
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): I don't think so?
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): Running it contained, so latest?