Hello, this is related to this Question about agents being not directly reachable at remote sites.
I have a working setup of a master at the main site with its own hostname (lets call it icinga-master), but reachable from external through port forwarding using a different IP and DNS name (icinga.company.org).
Situation is, agent reaches out to master, but will not authenticate because the certificate does not match the address given for the master.
Question: how to change the checking of the hostname or how to tell the agent that the master has two names?
[2024-09-28 09:14:25 +0000] information/ApiListener: Finished reconnecting to endpoint ‘master’ via host ‘EXTERNAL-IP’ and port ‘5665’
[2024-09-28 09:14:35 +0000] information/ApiListener: Reconnecting to endpoint ‘master’ via host ‘EXTERNAL-IP’ and port ‘5665’
[2024-09-28 09:14:35 +0000] warning/ApiListener: Unexpected certificate common name while connecting to endpoint ‘master’: got ‘HOSTNAME’
[2024-09-28 09:14:35 +0000] information/ApiListener: Finished reconnecting to endpoint ‘master’ via host ‘EXTERNAL-IP’ and port ‘5665’