When replacing a vSphere Machine SSL certificate with a Custom Certificate Authority Signed Certificate, the vpxd-svcs service fails to start.
The failure to start vpxd-svcs during certificate replacement is due to SSL certificate verification failure. The mismatch between the PNID and the hostname prevents successful service initialization.
You can find detailed logs related to this issue in the following path:
/var/log/vmware/vmon/vmon.log
YYYY-MM-DDTHH:MM:SS Wa(03) host-###### <vpxd-svcs> Service pre-start command's stderr: self._sslobj.do_handshake()
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-###### ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '###.###.###.###'. (_ssl.c:997)To resolve this issue, follow these steps:
/usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
hostname -f
2. To change the PNID (Primary Network Identifier) on vCenter Server using the vSphere Appliance Management Interface (VAMI), follow these steps: