I just kinda ran with it and it seems to be working fine. FWIW here is what I did to get things set up:
- Followed instructions from Sandboxes (Jail-like Containers) | TrueNAS Documentation Hub to install
jailmaker. - Had to add
sudo chmod +x /mnt/main/jailmaker/jlmkr.pyto make it work. - Then ran
jlmkrto follow instructions to create a jail namedletsencryptthat runs at startup - use--bind='/etc/certificates'in thesystemd_nspawn_user_argssetting to ensure the certificates land in the correct place - Ran
apt install cron socat gitin jail (usingjlmkr shell letsencrypt) - Ran
curl https://get.acme.sh | sh -s email=you@yourdomain.comin jail - Ran
git clone https://github.com/danb35/deploy-freenasin jail - Copied
/root/.acme.shfrom my old install into jail (same path) - Copied
/root/deploy-freenas/deploy_configinto jail (same path) - Ran
./acme.sh --force --dns dns_linode_v4 --dnssleep 240 --issue -d <truenas_fqdn> --standalone --reloadcmd "/root/deploy-freenas/deploy_freenas.py"in jail to ensure cert renew works (specific for me, since I uselinode_v4DNS verification) - Ran
./acme.sh --cron --forcein jail to ensure cron job will run - Checked
crontab -l, entry created by acme.sh was53 6 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/nullin my case (YMMV) - Deleted ACME Cert renewal cron job from Truenas UI
Hope this all continues to work now!