It produced this output: certificate successfully installed
My web server is (include version): Server version: Apache/2.4.6 (CentOS)
The operating system my web server runs on is (include version): CentOS 7.9
My hosting provider, if applicable, is: a VPS.
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 1.11.0
I have installed certificate and it's working fine. I partially followed the instructions here(to get the issue command): Certbot Instructions | Certbot , but I am facing a bit of trouble locating the cron job.
The guide states:
The command to renew certbot is installed in one of the following locations:
/etc/crontab/
/etc/cron.*/*
systemctl list-timers
However, the cronjob is nowhere to be found in those locations. Any ideas where could it be? (The install is brand new from today). Maybe I need to update certbot or something(I am sorry, that I didn't install via snap - I assumed it was still yum and read it later - I only got what I needed from the guide.)?
I probably just add another cronjob of certbot renew to crontab every 4am? I don't think it will break anything: at worst case it would look for renew twice as often, which isn't a problem as certbot only renew when it see cert near expire date.
I would now check the LE log file (or wait 24 hours and recheck it then).
If certbot renew has been run (via cron) there would be some evidence of it in the logs. tail /var/log/letsencrypt/letsencrypt.log
I have waited 24 hours since the installation of certificate - it ran on 1st of December 04:19 MSK time. Now, the time shows: "Thu Dec 2 15:39:31 MSK 2021". However, the latest logs in letsencrypt.log date to 01st of December - 04:19.
2021-12-01 04:19:43,238:DEBUG:certbot._internal.main:certbot version: 1.11.0
2021-12-01 04:19:43,238:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2021-12-01 04:19:43,238:DEBUG:certbot._internal.main:Arguments: []
2021-12-01 04:19:43,238:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2021-12-01 04:19:43,271:DEBUG:certbot._internal.log:Root logging level set at 20
2021-12-01 04:19:43,271:INFO:certbot._internal.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2021-12-01 04:19:43,343:DEBUG:certbot.ocsp:Querying OCSP for /etc/letsencrypt/live/fqdn.mydomain.com/cert.pem
2021-12-01 04:19:43,343:DEBUG:certbot.ocsp:openssl ocsp -no_nonce -issuer /etc/letsencrypt/live/fqdn.mydomain.com/chain.pem -cert /etc/letsencrypt/live/fqdn.mydomain.com/cert.pem -CAfile /etc/letsencrypt/live/fqdn.mydomain.com/chain.pem -verify_other /etc/letsencrypt/live/fqdn.mydomain.com/chain.pem -trust_other -timeout 10 -header Host r3.o.lencr.org -url http://r3.o.lencr.org
2021-12-01 04:19:43,468:DEBUG:certbot.display.util:Notifying user: Found the following certs:
Certificate Name: fqdn.mydomain.com
Serial Number: 375e8ecf00f17d9c84df37e1efca0dabb4b
Key Type: RSA
Domains: fqdn.mydomain.com www.fqdn.mydomain.com
Expiry Date: 2022-02-28 20:53:56+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/fqdn.mydomain.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/fqdn.mydomain.com/privkey.pem