The certificate is automatically renewed every 12 o’clock even I have not used the crontab or renew command. I do not understand why it automatically renews the certificates. How can I renew the certificates manually?
I think @Osiris is on the right track asking about whether it could be a systemd timer. I believe Certbot on modern Ubuntu prefers this approach vs crontab.
What does running this command on your server show you:
Also, the automated running of certbot renew twice a day is recommended. Normally, it checks if a certificate needs to be renewed. If everything isn’t within a configured or default number of days before expiry, it shouldn’t do anything.
If your certbot really renews twice a day, there is also something wrong with either the certbot command or the certbot configuration.
I think Ubuntu 14.04 is too old to be using systemd so there is no systemctl for this Ubuntu version.
@bmw@schoen Do one of you know how Certbot sets up automated renewal on 14.04?
I believe 14.04 is no longer suppoted by Canonical and isn't getting any security updates. You may want to consider moving to a supported Ubuntu version above and beyond your current Certbot problem.
The end-of-life date for 14.04 is "April 2019", which I imagine means that it stopped being supported by Canonical three days ago (although there's no update to Releases - Ubuntu Wiki indicating this). Perhaps Canonical's interpretation is that it's still supported for 26 more days.
That’s normal, though. It runs Certbot twice a day. When your certificates will expire in less than 30 days (by default), Certbot will renew them. Otherwise it exits without doing anything.
Edit:
Oh. Rereading your first post, you want to manage renewal manually.
I’m curious why, but that’s up to you.
If you need something additional to happen when your certificates are renewed, it might be possible to automate it with a hook.