[Workaround] Problems with "cert expiry" integration

Core version 2021.12.3

The cert expiry integration shows a sensor with the cert expiry timestamp ( 2021-12-09 )

To renew in adavance the cert certificate , I ran the add-on “letsencrypt” successfully as per the log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] file-structure.sh: executing... 
[cont-init.d] file-structure.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:03:07] INFO: Selected http verification
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for ha.infra-bour9.me
Successfully received certificate.
Certificate is saved at: /data/letsencrypt/live/ha.infra-bour9.me/fullchain.pem
Key is saved at:         /data/letsencrypt/live/ha.infra-bour9.me/privkey.pem
This certificate expires on 2022-03-20.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

The remote access is working fine.
But the new expiry date is not updated in the cert expiry sensor .

Also the log file /var/log/letsencrypt/letsencrypt.log is not present in the system (no letsencrypt directory .

Please somebody confirm this behavior ?
Thank you

Try rebooting your host and recheck as that’s the only way I could get my cert to update in HA

1 Like

Thanks @rossk for your reply.

Rebooting the host + delete/re-create the cert expiry integration were required to have the proper expiry date in the cert expiry sensor ’ at least here )

So sounds like there is really an issue in such method to renew the cert certificate

1 Like

cert expiry sensor renews once per 12h