mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
04d8c45ede
The --cacert flag was only used for curl during installation. On systems with custom CA certificates (e.g. TrueNAS CORE with certs in /etc/certificates/CA), the agent process had no way to trust the custom CA and users had to fall back to --insecure. Set SSL_CERT_FILE in the agent's runtime environment when --cacert is provided. Go's crypto/x509 reads this natively, so the agent trusts the custom CA without any binary changes. All service types are covered: systemd, upstart, launchd, FreeBSD rc.d, OpenRC, SysV init, and Unraid. Also validates the --cacert path at install time: directories and missing paths now fail early with a clear message instead of silently proceeding.