I received an email saying that TLS-SNI-01 validation is reaching end-of-life. And I need to update my ACME client to use an alternative validation method (HTTP-01, DNS-01 or TLS-ALPN-01). Please, help me on the steps I should take to update my ACME client.
I have a certificate valid until April.
I do not use certbot but letsencrypt client.
My domain is: turing.iimas.unam.mx
I ran this command:
It produced this output:
My web server is (include version): apache 2.4.18
The operating system my web server runs on is (include version): ubuntu server 16.04
My hosting provider, if applicable, is:
I can login to a root shell on my machine: yes
I’m using a control panel to manage my site : no
The version of my client is: letsencrypt 0.4.1. I guess I installed it with the command sudo apt-get install python-letsencrypt-apache
I read here (How to stop using TLS-SNI-01 with Certbot) that letsencrypt used to be the name of what now is certbot. Should I uninstall letsencrypt and install certbot instead? How can I do this?
Amazingly, 0.4.1 is still the official current version of Certbot for Ubuntu 16.04 but there is also a PPA that will let you update to a newer version (described on the site that @rg305 linked to).
I updated the certbot following the instructions in the site you pointed out to me. Certbot version is 0.28.0 Everything worked out. After renewing my certifitcate I got the output:
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for turing.iimas.unam.mx
Waiting for verification…
Cleaning up challenges
This output refers to validation method http-01, so I supposed I’m not using TLS-SNI-01 anymore. I also set a crontab job to automatically renew the certificate.
But I still don't see the output I'm looking for.
Did you run the last command as root?
[sudo systemctl status --full certbot.service]
[does that show any additional output?]
OK, so the command does as expected (there is no cert to renew today).
The question now is does the system timer actually trigger and run the command?
I suppose you can check later on in the letsencrypt.log file to see if it did run automatically.
[Saving debug log to /var/log/letsencrypt/letsencrypt.log]
I checked such log file, it has data of a dry-run I run yesterday and data of /usr/bin/certbot renew I run a couple of hours ago. No info of scheduled renewals is present, it seemed no renewal took place and no renewal is automated.
I also run:
sudo less /var/log/letsencrypt/letsencrypt.log
nohernan@turing:~$ sudo systemctl list-timers
NEXT -------------- LEFT -------------- LAST -------------- PASSED -------------- UNIT ------------- ACTIVATES
wed 19-02-13 --- 6min left ----------- n/a ----------------- n/a ---------------------- certbot.timer --- certbot.service
If the taks is executed twice, then a renewal should have taken place already because I installed certbot yesterday, but it is not the case because the LAST field says n/a
I think I have to manually create a cron job to have the renewal automated.