Cerbot fails to be clear about renewal status and does not add IPv6 interface to Nginx on Linux Debian

My domain is:
private

I ran this command:
sudo certbot --nginx -d xyz.xyz.xyz; systemctl status certbot && nginx -t

It produced this output:
"renew the certificate in the background, but you may need to take steps to enable that functionality"
(Full output)

My web server is (include version):
nginx/1.22.1

The operating system my web server runs on is (include version):
Debian Linux 12

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 2.1.0


Hello dear community, I am confused by the above mentioned command output. Confused whether my certificate will be automatically renewed or not. If yes, then the message needs to be fixed not to confuse. If no, then why no.

When I do: cat /etc/crontab; crontab -l; find /etc/cron.* -type f|grep cert
The crontabs has no certbot, but there is a file /etc/cron.d/certbot containing:

# Important Note!  This cronjob will NOT be executed if you are
# running systemd as your init system.  If you are running systemd,
# the cronjob.timer function takes precedence over this cronjob.  For
# more details, see the systemd.timer manpage, or use systemctl show
# certbot.timer.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --no-random-sleep-on-renew

it says, that it wont be executed if i run systemd, which i do run:
"systemctl show certbot.timer" has output

# systemctl status certbot*
โ— certbot.timer - Run certbot twice daily
     Loaded: loaded (/lib/systemd/system/certbot.timer; enabled; preset: enabled)
     Active: active (waiting) since Tue 2025-05-06 13:49:07 CEST; 20min ago
    Trigger: Tue 2025-05-06 23:13:49 CEST; 9h left
   Triggers: โ— certbot.service

May 06 13:49:07 my.hn.local systemd[1]: Started certbot.timer - Run certbot twice daily.

so it looks like a service is running, so the /etc/cron.d/certbot will be ignored...

How to discover why Certbot is confusing me by telling me that i may need to enable the automatic renewal on the background. Cerbot has ability to check my system and tell me if renewal is enabled or not.

When I have installed it for the first time on same system, then I do not remember such message. After first installation, I have removed folder /etc/letsencrypt and uninstalled (apt purge) and then installed again (apt install python*certbot-nginx && sudo certbot --nginx -d), having this problem.

btw. Certbot did not added to my nginx.conf IPv6 interface, only "listen 443 ssl; # managed by Certbot"
Previously I had added by myself [::]:443 ssl; so I am worried to edit certbot added lines.

# ping6 google.com
64 bytes from ...: icmp_seq=1 ttl=117 time=8.71 ms

Thank You

With the --nginx option, if Certbot creates your server block for port 443 it adds listen statements for IPv4 and v6 as they were in the server block for port 80. If only IPv4 was in port 80 block then only IPv4 will be in the new port 443 block.

Perhaps the message could be clearer.

The reason is that the automated renewal is setup during install. If you used apt, for example, the people who create the apt package are the ones who also setup the automated renew. That is a different group entirely from the EFF Certbot team. For the snap install, which is recommended, the snap install sets it up. See: https://certbot.eff.org/

People may need to manually set up auto-renew for certain installs (like pip or possibly containers) which makes it very difficult for Certbot to know what was done.

People can also customize the auto-renew in numerous ways which would be difficult if not impossible for Certbot to detect.

If it doesn't yet that message could refer you to this section of the docs about auto-renew: User Guide โ€” Certbot 4.1.0.dev0 documentation

To request a change to Certbot's operation please visit the EFF's Certbot github: GitHub ยท Where software is built

3 Likes