root@Moodle:/etc/apache2/sites-available# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Attempting to parse the version 1.4.0 renewal configuration file found at /etc/letsencrypt/renewal/elearning.osem.edu.in.conf with version 0.27.0 of Certbot. This might not work.
OCSP check failed for /etc/letsencrypt/live/elearning.osem.edu.in/cert.pem (are we offline?)
Found the following certs:
Certificate Name: elearning.osem.edu.in
Domains: elearning.osem.edu.in
Expiry Date: 2020-08-12 03:13:41+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/elearning.osem.edu.in/fullchain.pem
Private Key Path: /etc/letsencrypt/live/elearning.osem.edu.in/privkey.pem
Your version of certbot is old and probably using the acme v1 API (which no longer works), you need to upgrade certbot to the highest version your OS supports.
Attempting to parse the version 1.4.0 renewal configuration file found at /etc/l etsencrypt/renewal/elearning.osem.edu.in.conf with version 0.27.0 of Certbot. Th is might not work.
Cert is due for renewal, auto-renewing...
Could not choose appropriate plugin: The requested apache plugin does not appear to be installed
Attempting to renew cert (elearning.osem.edu.in) from /etc/letsencrypt/renewal/e learning.osem.edu.in.conf produced an unexpected error: The requested apache plu gin does not appear to be installed. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/elearning.osem.edu.in/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/elearning.osem.edu.in/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)
Sorry I'm not a certbot expert and the upgrade process will depend on how you originally installed it. See https://certbot.eff.org/
For all software upgrades I recommend taking a snapshot of your VM and testing out upgrades that way, especially if you didn't install the software originally.