I ran this command:
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx
It produced this output:
My web server is (include version):nginx/1.10.3 (Ubuntu)
The operating system my web server runs on is (include version):ubuntu 16.04
My hosting provider, if applicable, is: Digitalocean
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
I am trying to update the package of the certbot version from 0.22.0 to 0.26.1 but to no avail. It says it’s the latest but when I run the version command, it says the same.
And if I do “sudo certbot renew --dry-run”, I get this long error where most noticeable one is this-
Attempting to renew cert (picklikeapro.com) from /etc/letsencrypt/renewal/picklikeapro.com.conf produced an unexpected error: Deserialization error: Could not decode ‘status’ (‘ready’): Deserialization error: Status not recognized. Skipping.
What is wrong here please?
Full error report-
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Attempting to renew cert (crud.madcoderz.com) from /etc/letsencrypt/renewal/crud .madcoderz.com.conf produced an unexpected error: Deserialization error: Could n ot decode ‘status’ (‘ready’): Deserialization error: Status not recognized. Skip ping.
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Attempting to renew cert (picklikeapro.com) from /etc/letsencrypt/renewal/picklikeapro.com.conf produced an unexpected error: Deserialization error: Could not decode ‘status’ (‘ready’): Deserialization error: Status not recognized. Skipping.
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Attempting to renew cert (pos.madcoderz.com) from /etc/letsencrypt/renewal/pos.madcoderz.com.conf produced an unexpected error: Deserialization error: Could not decode ‘status’ (‘ready’): Deserialization error: Status not recognized. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/crud.madcoderz.com/fullchain.pem (failure)
/etc/letsencrypt/live/picklikeapro.com/fullchain.pem (failure)
/etc/letsencrypt/live/pos.madcoderz.com/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/crud.madcoderz.com/fullchain.pem (failure)
/etc/letsencrypt/live/picklikeapro.com/fullchain.pem (failure)
/etc/letsencrypt/live/pos.madcoderz.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)
So the problem was with Certbot version as far as I can understand. And I am after this for long hours trying to find problem with my nginx configuration.