hi
I use Let’s Encrypt on a few websites hosted on Digital Ocean running apache and Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-57-generic x86_64)
I used a previous version of letsencrypt to getting SSL working on apache for the following two domains for my droplet. These now only have 23 days remaining.
I recently upgrades a number of packages - as recommended in DO’s tutorial before getting a new SSL cert for
And now the following command returns the following errors:
$ sudo letsencrypt renew
Processing /etc/letsencrypt/renewal/cycling-jersey-collection.uk.conf
2017-01-05 10:58:55,499:WARNING:letsencrypt.cli:Attempting to renew cert from /etc/letsencrypt/renewal/cycling-jersey-collection.uk.conf produced an unexpected error: ‘server’. Skipping.
Processing /etc/letsencrypt/renewal/cycling-jersey-collection.com.conf
2017-01-05 10:58:56,563:WARNING:letsencrypt.cli:Attempting to renew cert from /etc/letsencrypt/renewal/cycling-jersey-collection.com.conf produced an unexpected error: ‘server’. Skipping.
Processing /etc/letsencrypt/renewal/ontherivet.store.conf
The following certs are not due for renewal yet:
/etc/letsencrypt/live/ontherivet.store/fullchain.pem (skipped)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/cycling-jersey-collection.uk/fullchain.pem (failure)
/etc/letsencrypt/live/cycling-jersey-collection.com/fullchain.pem (failure)
2 renew failure(s), 0 parse failure(s)
Can you please advise a suitable course of action?
I believe this problem usually happens when initially installing Certbot or letsencrypt from git or letsencrypt-auto, and then “upgrading” to an Ubuntu OS package. Is that perhaps what you did in this case?
The trouble is that the Ubuntu package is actually an older version of the client, and the renewal configuration files aren’t backwards-compatible.
Installing from Ubuntu and other Distro’s repositories is generally not advised as they are not updated frequently enough. Ubuntu’s repo has a version that’s anywhere between 0.2.0-4 and 0.4.1-1. However the latest official client Certbot is at 0.9.3.
Only Ubuntu 16.10 gives you a later version 0.8.1-2 (still outdated)
and Ubuntu Zesty (amazingly) has 0.9.3-1 in their repo.
Best still is to clone the repo from Github into /opt/certbot and always be up to date.
Yes indeed @Osiris … my bad, still stuck with git clone in my head. Will update all my articles to note this that only the script is needed. Thanks for the reminder