danb35/deploy-freenas

Python script to automate deploying TLS certificates to TrueNAS servers

240

stars

130

commits

Python

primary language

Aug 15, 2026

updated

deploy-tls-certificates
freenas
freenas-scripts
truenas
truenas-core
truenas-scale
truenas-scripts

README

Deploy TLS Certificates to FreeNAS/TrueNAS

This repository contains scripts to automate deployment of a TLS certificate to your FreeNAS (11.1 or newer) or TrueNAS server. Due to a complete overhaul of the API in more recent versions of TrueNAS, this repo contains two different scripts, each with its own README.

  • If you're using FreeNAS, or TrueNAS CORE, use deploy_freenas.py. README. This will also work with TrueNAS SCALE through 24.10, but as SCALE introduced a websocket API, the other script is recommended.
  • If you're using TrueNAS SCALE or Community Edition (as of 25.04), use deploy_truenas.py. README
  • I've had no reports of compatibility, pro or con, with any version of TrueNAS Enterprise. I expect the _freenas version will work with FreeBSD-based TrueNAS Enterprise installations, while the _truenas version will work with Linux-based installations, but I'm afraid you're largely on your own.

Support

If you have questions about these scripts, or issues with them, let me know in this topic on the TrueNAS forums.

Contributors

danb35

85 commits

adorobis

4 commits

DasSkelett

4 commits

gugrim

4 commits

danb35/deploy-freenas

Python script to automate deploying TLS certificates to TrueNAS servers

240

stars

130

commits

Python

primary language

Aug 15, 2026

updated

deploy-tls-certificates
freenas
freenas-scripts
truenas
truenas-core
truenas-scale
truenas-scripts

README

Deploy TLS Certificates to FreeNAS/TrueNAS

This repository contains scripts to automate deployment of a TLS certificate to your FreeNAS (11.1 or newer) or TrueNAS server. Due to a complete overhaul of the API in more recent versions of TrueNAS, this repo contains two different scripts, each with its own README.

  • If you're using FreeNAS, or TrueNAS CORE, use deploy_freenas.py. README. This will also work with TrueNAS SCALE through 24.10, but as SCALE introduced a websocket API, the other script is recommended.
  • If you're using TrueNAS SCALE or Community Edition (as of 25.04), use deploy_truenas.py. README
  • I've had no reports of compatibility, pro or con, with any version of TrueNAS Enterprise. I expect the _freenas version will work with FreeBSD-based TrueNAS Enterprise installations, while the _truenas version will work with Linux-based installations, but I'm afraid you're largely on your own.

Support

If you have questions about these scripts, or issues with them, let me know in this topic on the TrueNAS forums.

Contributors

danb35

85 commits

adorobis

4 commits

DasSkelett

4 commits

gugrim

4 commits

Languages

Python

100.0%