Hi Guys,
I followed the instructions at https://www.home-assistant.io/docs/ecosystem/certificates/lets_encrypt/ and successfully set up encryption and have an icon showing the number of days left before expiry.
In my configuration.yaml file I have the following:
- alias: 'Auto Renew SSL Cert'
trigger:
platform: numeric_state
entity_id: sensor.ssl_cert_expiry
below: 29
action:
service: shell_command.renew_ssl
Since I was sure I was a TWO RULE person, I then had the following:
renew_ssl: ~/certbot/certbot-auto renew --quiet --no-self-upgrade --standalone --preferred-challenges http-01
It now shows that my expiry is down to 13 days, so obviously something hasn’t worked, so I thought that I might be a ONE RULE person, so when I did the recent update, I also changed my configuration to the following:
renew_ssl: ~/certbot/certbot-auto renew --quiet --no-self-upgrade --standalone --preferred-challenges tls-sni-01 --tls-sni-01-port 8123 --pre-hook "sudo systemctl stop [email protected]" --post-hook "sudo systemctl start [email protected]"
I did the update to Hassbian, then changed the line in Configuration.yaml. After making the change, I did a restart of the services but my tile is still showing 13 days to expiry. I then did a restart of my Raspberry PI and still no effect.
Before I do a manual update as per the instructions on that web page, I would like to work out what’s going wrong so I don’t have to do a manual update every 90 days.
Any help would be appreciated.