I use Let’s Encrypt to obtain a certificate in HA on my RPi4
Every first of the month I run an automation to start the Let’s Encrypt Add-On and fetch a new certificate.
The automation completes each time and creates new certificate pem-files in the ssl folder.
My issue is, that the web server keeps presenting the old certificate even after a host reboot. The only way to load the new cert seems to completely powerdown the system and do a cold boot.
After reading this item I tried restarting HomeAssistant through automation. But still the web service presents the previous certificate.
Can anyone tell how to let Home Assistant load the latest certificate without completely shutting down the system?
Here is the certificate configuration:
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
Here is the current automation to renew the certificate:
- id: lets-encrypt-renewal
alias: System - Let's Encrypt Renewal
trigger:
- platform: time
at: 02:25:00
condition:
- condition: template
value_template: '{{ now().day == 1 }}'
action:
- service: hassio.addon_restart
data:
addon: core_letsencrypt
- delay: 00:05:00
- service: homeassistant.restart
data: {}