How can I automate the moving of a certificate file from /share/ to /ssl/ ? It seems shell_command do not have default access to the /ssl/ directory.
I am using an internally hosted ACME server, so I cannot use the current duckdns, atm I am using a small footprint binary to generate the certificates. I enjoy it because I am using it everywhere else as well.
#Automate file move from /share/ to /ssl/ ? [SOLVED]
1 messages · Page 1 of 1 (latest)
What requires that it be in /ssl?
@swift locust the nginx service. I run low expiry date certificates, so restarting home assistant every 24 hours just because of a certificate renewal seems excessive.
[FIXED] created a new addon for it.
IIRC, I symlinked /ssl so that no move was necessary. I'm using Letsencrypt and have an externally available host renewing my certs for me. I have a deploy hook that pushes the files up to my HA server, then reboots the box to ensure the new certs are applied.
Here's the script I used. Ignore the REMOTE_FOLDER variable; it was copypasta from another hook.
The problem is if you include nginx addon, you can't symlink, hardlinks dissappear the moment you update and symlinks don't carry over. Don't want to reboot my box each time a new cert is found, rather let nginx handle reloading the cert.