Symptoms
agent: x509: certificate signed by unknown authority
Causes
- The CA is not trusted — the agent does not know our CA bundle
- System time skew — the cert is valid from X to Y, but the agent's clock is out of range
- SNI mismatch — the cert was issued for one.example.com, the agent connects to another.example.com
Fixes
unimoni-agent --ca-bundle /etc/ssl/unimoni-ca.crtsudo systemctl restart systemd-timesyncd + check timedatectl status- Use the hostname from the cert SAN (
openssl s_client -connect host:8443 | openssl x509 -noout -text)