Deploying an SSL cert to Docker apps

I have multiple custom apps on my TrueNAS, which is running SCALE 24.0.1. Most of them are accessible via a Reverse Proxy also running on the TrueNAS, which happens to be a Linux VM running Virtualmin (Apache, MariaDB, etc.).

Currently, the Linux VM handles all SSL certs, and pulls a Let’s Encrypt Wildcard cert for my domain, which has its website hosted in the VM. From here, the cert is also used in the proxy sites, and also is passed to the TrueNAS itself via the Deploy_Freenas script. So far, so good.

One of my Docker containers is running Nextcloud and Collabora. Both apps want to see / have an SSL cert in place to work with each other, working through the proxy is not enough.

Is there a way to either 1) deploy an SSL cert from within the Docker container that the other apps can use, or 2) Pass the SSL Cert from the NAS itself to the containers?

1 Like

Checking back on this - is there a way to include / deploy the SSL cert on my TrueNAS OS to custom Docker apps I deploy?

I can see it’s possible to include the cert on Apps from the TrueNAS App Library, but I can’t find a way to include them in my own apps I am composing.