Have the acme user own thedatasettank/data/database/letsencrypt/acme.
Mount /mnt/tank/data/database/letsencrypt/acme to /var/db/acme/ Mount the certs under /var/db/acme/certs/
Nullfs mount datasets in jail:
letsencrypt data:
Setup directories for certs:
Mount the directories:
Check fstab:
Start jail and enter.
Jail
In the jail, update all packages and install acme.sh.
Switch to the ‘acme’ user which renews the certificate on a cron job add configuration.
Issue cert
Add acme to le in FreeNAS and jail.
chown certs dir in freenas to acme:le recursively.
Set Install Location
Now, to set the install location for the certificates use the installcert command, for example:
Cert deploy location: /etc/certificates
Various Services
Various Services need their certificates installed two different locations, and some of them need some changes. There are a few that I make changes to from the default.
Emby
Emby needs pks file, to convert cert key cert and ca are needed
Set deploy location
Install directory in jail: /var/db/emby-server/ssl
Cron:
Crontab from freenas:
You probably want to renew starts on a crontab so they get done every month. I use the following script to renew my various services: