Hostname/IP Does not Match Certificate's altnames Which Breaks the Communication to Management Plane

Problem

  • Comms not able to communicate to management plane and throwing the following error.

[2023-09-03 14:29:35.144] [ERROR] sni-broker.v0.mgplane.pf9.localnet-::1-5672-4 - TLS socket for client 28180 error: Error [ERR_TLS_CERT_
ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: broker.v0.mgplane.pf9.localnet. is not cert's CN: mgplane.pf9.localnet

Environment

  • Platform9 Edge Cloud - v-5.3.0-2075501

Cause

  • Host agent config file is not updated with the cert_version parameter which leads comms to use an older cert version.

root@worker0 ~]# cat /etc/pf9/hostagent.conf
[hostagent]

[ssl]
cert_version=
disable=True
  • From error message [2023-09-03 14:29:35.144] [ERROR] sni-broker.v0.mgplane.pf9.localnet-::1-5672-4 - TLS socket for client 28180 error.The sni-broker.v0 indicates it is referring to cert version v0.

Resolution

  • Identify the latest cert_version.

  • Update the hostagent.conf file

  • Restart the services.

Last updated