Action Required: Home Assistant Auto Renew crontab -e


#1

I run certbot running on Raspberry Pi with a crontab to auto-renew. I got the warning email because I use TLS. I’m having trouble updating my command, please help!

I used this crontab -e command before the change:
30 2 * * 1 /home/homeassistant/certbot/certbot-auto renew --quiet --no-self-upgrade --standalone --preferred-challenges tls-sni-01 –tls-sni-01-port 8112 --pre-hook “sudo systemctl stop home-assistant@homeassistant.service” --post-hook “sudo systemctl start home-assistant@homeassistant.service”

I changed the crontab -e command to this:
30 2 * * 1 /home/homeassistant/certbot/certbot-auto renew --quiet --no-self-upgrade --standalone --preferred-challenges tls-alpn-01 –tls-alpn-01-port 8112 --pre-hook “sudo systemctl stop home-assistant@homeassistant.service” --post-hook “sudo systemctl start home-assistant@homeassistant.service”

It produced this output:
pi@raspberrypi:~ $ sudo /home/homeassistant/certbot/certbot-auto renew --quiet --no-self-upgrade --standalone --preferred-challenges tls-al" --post-hook “sudo systemctl start home-assistant@homeassistant.service”/home/homeassistant/certbot/certbot-auto renew --quiet --no-self-ustemctl stop home-assistant@homeassistant.service" --post-hook “sudo systemctl start home-assistant@homeassistant.service”
usage:
certbot-auto [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] …

Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: argument --preferred-challenges: Unrecognized challenges: tls-alpn-01

The operating system my web server runs on is:
Debian Stretch v9.6
Linux version 4.9.35-v7+

I can login to a root shell on my machine:
Yes

I’m using a control panel to manage my site:
No


#2

Hi @ttaidapos

Certbot doesn’t support tls-alpn-01 - validation.

You have to switch to http - validation (requires http / port 80), dns - validation (a dns txt entry) or you have to use a client that supports tls-alpn-01 - validation (acme.sh).


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.