My Home Assistant runs on Home Assistant Operating System. I’m trying to get my custom letsencrypt process working. Therefore I have created an automation which runs a bash script with certbot. Now my problem is, that the /ssl/ folder is not writeable from the homeassistant containter.
Is there a way to wirte to the /ssl/ folder of the host or the make it writeable form the homeassistant containter out of an automation?
Why not make a directory under /config/ssl and get cerbot to write the certs there ?
Surely the folder will be accessible to any container that needs it ?
Hi _dev_null,
that was my first approach too, but than I realised, that the certificate is not a accessible for the Vaultwarden (Bitwarden) addon, I also use.
There you can only specify a certificate and key name in the /ssl/ folder. (Please correct me if I’m wrong)
So I though about placing the certificate in the /ssl/ folder and didn’t find a solution.
No, I cant’t. Bescause it’s a read only filesystem in the docker container.
See here:
homeassistant:/ssl# ls
fullchain.pem privkey.pem
homeassistant:/ssl# rm fullchain.pem
rm: remove 'fullchain.pem'? y
rm: can't remove 'fullchain.pem': Read-only file system
homeassistant:/ssl#
As mentioned in my initial post my intention is to write to the /ssl/ folder (on the host) from inside the docker container “homeassistant”. That still doens’t work.
What works is wirting to the /ssl/ folder from the host. But (please correct me if I’m wrong) sending commands from a script that is triggered by an automation to the host os is not possible.
@hoasgit You can try to use my script (GitHub - zamolxe/homeassistant-aswt) to run shell_commands in the aswt container since that one has rw access to /ssl. I have also custom letsencrypt process.