addons icon indicating copy to clipboard operation
addons copied to clipboard

Add information on using an automation to renew a certificate

Open Twincarb opened this issue 3 years ago • 4 comments

To save having to trawl through forums to find out how to automate the renewal of a certificate it makes sense to me to add the information to the documentation.

Fixes #2423

Twincarb avatar May 16 '22 15:05 Twincarb

Hi @Twincarb,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

homeassistant avatar May 16 '22 15:05 homeassistant

It makes sense to me to use a Blueprint, I have just created my first Blueprint on my system to test it works. Where should it be published too? https://community.home-assistant.io/c/blueprints-exchange To address @ludeeus point that HA requires restarting, is this something that can be added as an action to the Blueprint with a rule so it only restarts on the certificate being successfully being renewed?

Twincarb avatar May 31 '22 17:05 Twincarb

@Twincarb Yes it should be published to that section of the forum you linked. See sharing blueprints in the about blueprints post in that section. Basically make a post, put your blueprint in, generate a badge and then add that badge to the doc here instead of the YAML. That way its just click button to import and fill in the time to run at.

mdegat01 avatar Jun 24 '22 14:06 mdegat01

What's the larger philosophy around what should be a blueprint vs what should be core functionality? IMO if everyone who uses the add-on needs to install this blueprint in order for the addon to work as expected, the behavior should just be rolled into the addon.

It would be easier for everyone if the integration just checked the SSL cert's expiration date nightly and renewed as needed.

I proposed a more detailed proposal at https://github.com/home-assistant/addons/issues/2423#issuecomment-1187695582 but haven't gotten feedback from maintainers.

elahd avatar Aug 13 '22 15:08 elahd