I’m running OH2 in a Docker container using the snapshots as described here:
Every time I restart the service it starts up a new container. So far this works great and it lets me sidestep some of the upgrade issues since my userdata and conf folders are mounted into the container so don’t get wiped out with updates.
However I do have one minor problem which I’m having trouble figuring out. Every time I restart the container, the ssl cert for the karaf console ssh connection gets regenerated. So that means I have to remove the cert from my known hosts every time I want to connect to the console after a restart.
I tried mounting the host’s /etc/ssl/certs into the container but it appears karaf uses its own certs.
I’ve applied my
find skills to see if I could find the certs in the openhab directory but I could not find any pem files.
I did find where I think I can configure karaf to allow login using a cert but that doesn’t help me capture and keep the cert the host uses to identify itself.
Does anyone have any insights?