[ OK ] DietPi-LetsEncrypt | Apache webserver detected
[ OK ] DietPi-LetsEncrypt | Desired setting in /etc/apache2/sites-available/000-default.conf was already set: ServerName XXXX.duckdns.org
[ OK ] DietPi-LetsEncrypt | a2enmod http2
[ OK ] DietPi-LetsEncrypt | systemctl restart apache2
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: PluginError('There has been an error in parsing the file /etc/apache2/sites-enabled/000-default-le-ssl.conf on line 17: Syntax error')
[FAILED] DietPi-LetsEncrypt | Certbot failed, please check its above terminal output. Aborting...Last login: Tue Jun 4 09:04:42 on ttys000
This <------> is not literally in your config, is it? In case remove it. But it does not match the line number 17, hence I also guess it is in /etc/letsencrypt/options-ssl-apache.conf line 11 then. That file should normally not be touched, as it is provided by the python3-certbot-apache package directly. Better override its directives in 000-default-le-ssl.conf, if needed.
Tks , this file “options-ssl-apache.conf” is in original condition
Meantime I found that I had 2 open < IfModule > parts in the /etc/apache2/sites-available file and only 1 < /IfModule >
I corrected this and Now it looks like this
[ OK ] DietPi-LetsEncrypt | Apache webserver detected
[ OK ] DietPi-LetsEncrypt | Desired setting in /etc/apache2/sites-available/000-default.conf was already set: ServerName homer276.duckdns.org
[ OK ] DietPi-LetsEncrypt | a2enmod http2
[ OK ] DietPi-LetsEncrypt | systemctl restart apache2
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Renewing an existing certificate for homer276.duckdns.org
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: homer276.duckdns.org
Type: dns
Detail: DNS problem: SERVFAIL looking up CAA for duckdns.org - the domain's nameservers may be malfunctioning
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[FAILED] DietPi-LetsEncrypt | Certbot failed, please check its above terminal output. Aborting...
Press any key to return to the DietPi-LetsEncrypt menu ...
Now it’s looks like the problem is on the receiving end
Verify your DDNS provider is having correct and up to date IP address information. Looks like some information within the DNS record is missing. Not sure if you can add them yourself or of you need to contact your DDNS provider.
If so, please simply retry dietpi-letsencrypt. If not, please try to chance your DNS provider.
Certbot checks for CAA records, which define/limit the CAs which are permitted to generate certificate for a domain. E.g. dietpi.com has CAA records which permit only Let’s Encrypt and Cloudflare to generate TLS certificates, but not other CA. So if Certbot finds a record which does not permit Let’s Encrypt to generate certs, it will respect it and stop. However, in this case, the lookup itself seems to have failed.
Good morning,
tks for the hint’s. This morning the renewal of the certificate worked as planned. But I guess that sooner or later I change back to “dyndns.org”