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