Greetings, I’ve released a new version of the tnascert-deploy tool used to import TLS certificates to TrueNAS systems. It is similar to @dan python scripts. You may use this tool as part of an external ACME TLS certificate tools to automate the deployment of your TrueNAS TLS certificates using post deployment hook scripts.
tnascert-deploy 2.0 has bee refactored so that more TrueNAS API’s may be used. This will help to keep the tool up to date going forward and adds support for current and older TrueNAS releases. 2.0 now supports the TrueNAS 25 RPC-JSON 2.0 web socket API as well as the TrueNAS RESTful v2.0 API. Which API you use is now configured with a new config parameter client_api, see the configuration documentation for setting this parameter. Ive tested the tool with the following TrueNAS versions:
-
TrueNAS-CORE 13.3 using the RESTful API v2.0 - client_api = “restapi”
-
zVault 13.3-MASTER-202505042329 using the RESTful API v2.0 - client_api = “restapi”
-
TrueNAS-SCALE 24.10 using the RESTful API v2.0 - client_api = “restapi”
-
TruNAS-SCALE 25+ using the RPC-JSON v2.0 web socket API, client_api = “wsapi”
The release also adds a new app_list config parameter. This is a comma separated list of docker apps that you wish to update with the newly imported certificate, see the configuration file settings for details. Docker App certificate updates are ignored for zVault and TrueNAS-CORE.
Also included is a bug fix. Older releases could potentially delete some additional network parameters for Docker Apps when updating them with a new certificate. This bug was reported along with a PR fix by itsteddyyo@github.com. Many thanks to itsteddyyo reporting and providing a fix for the issue.
See the tnascert-deploy GitHub repository for details. Binary packages are available for download at tnascert-deploy Release 2.0
If you’ve used the tool in the past, I hope you appreciate the new release. If you encounter any issues, have comments, or would like to see new features, please open an issue ticket at the tnascert-deploy GitHub repository. PR’s are also welcome.
thanks
John Rushford