Log into NAS ssh:
iocage console nextcloud
pkg install py38-certbot py38-certbot-nginx
certbot renew --nginx
service nginx restart
Alternative: https://github.com/acmesh-official/acme.sh
iocage console nextcloud
cd /usr/local/etc/letsencrypt/live/yolosan.go.ro
openssl pkcs12 -export -out emby.pfx -inkey privkey.pem -in cert.pem -certfile fullchain.pem
exit
cp /mnt/media1/iocage/jails/nextcloud/root/usr/local/etc/letsencrypt/live/yolosan.go.ro/emby.pfx /mnt/media1/iocage/jails/emby/root/etc/certs
# restart emby from the interface