Hi,
3 years ago, I installed and set Certbot on my AWS EC2 instance (for a little personal Node.js application). The version was 0.21.1, and I was using Ubuntu 16.04.3 LTS. Everything was fine (thanks to @sahsanu, his help was precious).
This weekend, I upgraded my instance with Ubuntu 20.04.2 LTS, and I installed the latest version of Certbot (1.13.0) following the instructions here: https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx.
When I ran:
sudo certbot --nginx
After the selection of my domain, I selected 1: Attempt to reinstall this existing certificate
. And everything succeeded (I also ran sudo certbot renew --dry-run
to make sure).
But in my config file /etc/letsencrypt/renewal/MY.WEBSITE.COM.conf
, I still see the old version of Certbot. Here is the content of this file:
(to make it simple, let's use MY.WEBSITE.COM for my domain)
# renew_before_expiry = 30 days
version = 0.21.1
archive_dir = /etc/letsencrypt/archive/MY.WEBSITE.COM
cert = /etc/letsencrypt/live/MY.WEBSITE.COM/cert.pem
privkey = /etc/letsencrypt/live/MY.WEBSITE.COM/privkey.pem
chain = /etc/letsencrypt/live/MY.WEBSITE.COM/chain.pem
fullchain = /etc/letsencrypt/live/MY.WEBSITE.COM/fullchain.pem
# Options used in the renewal process
[renewalparams]
authenticator = webroot
installer = nginx
account = XXXXXXXXXXXXXXXXXXX
post_hook = systemctl reload nginx
[[webroot_map]]
MY.WEBSITE.COM = /home/ubuntu/letsencrypt
-
I assume I have to run a command to set the new certbot version? (as it's not recommended to edit it)
-
If you have any recommendation to improve my current config file, I'm more than open. Maybe I should add
rsa_key_size
or something? -
In my
/etc/cron.d/certbot
file, I've got this following content, is it still fine?
or are there better things to do? (like maybe using SysVinit instead of SystemD or certbot-auto instead of certbot)
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew
- I decided to upgrade mainly because I was wondering if the version of certbot I had was outdated and was still using ACMEv1 (my current certificate expires in June, thats's why I'm not sure). Actually, in January, I received an email from Let's Encrypt mentioning:
(in passing, thanks to Let's Encrypt for sending such emails)
According to our records, your Let's Encrypt software client renewed a TLS/SSL certificate recently using the ACMEv1 protocol`
So I assume it was time to upgrade.
Do we have to expect ACMEv2 protocol to be deprecated in the 2-3 coming years?
(just to have an idea of when I should upgrade certbot again)
Thanks in advance for your help