Symptoms
When attempting to manage certificates in the vCenter Server, users encounter the following issues:
Navigating to Menu > Administration > Certificate Management results in the error: Error occurred while fetching machine certificates: Service not found: com.vmware.vcenter.certificate_management.vcenter.tls
Critical vCenter services like vpxd, vpxd-svcs, and vmware-certificatemanagement fail to initialize using the command : service-control --start --all
in /var/log/vmware/vmon/vmon.log when the vpxd-svcs fails to start:[YYYY-MM-DDTHH:MM:SS] Wa (03) host-####### <vpxd-svcs> Service pre-start command's stderr: ssl. SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]certificate verify failed: Hostname mismatch, certificate is not valid for 'vCenter_FQDN'. (_ssl.c:1007)
/var/log/vmware/applmgmt/applmgmt.log[YYYY-MM-DDTHH:MM:SS] DEBUG: vmware. vherd. transport. authentication: Authentication Server Secret Renewed.[YYYY-MM-DDTHH:MM:SS] INFO: vmware. vherd. transport. ssh_access_collector: [Unit Test] renewed 50 credits to post event[YYYY-MM-DDTHH:MM:SS] INFO: vmware. vherd. transport. ssh_access_collector: [Unit Test]Start collecting from sshinfo. log[YYYY-MM-DDTHH:MM:SS] ERROR:cis. vpxdevent_lib: Failed to get vcenter server endpoint urls. Err [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)[YYYY-MM-DDTHH:MM:SS] ERROR: vmware. vherd. transport. post_sso_events: Failed to get vcenter server endpoint urls. Err [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)
This issue typically occurs due to one of the following conditions:
Hostname Mismatch: The Machine SSL certificate’s Subject Alternative Name (SAN) or Common Name (CN) does not match the actual vCenter Server FQDN.
Certificate Expiration: The Machine SSL certificate has expired, preventing secure communication between internal service endpoints.
Replace the Machine SSL certificate using one of the following methods:
Option 1:
unzip -q vCert-<version>.zipcd vCert-<version>./vCert.pyManage certificates (3)> Machine SSL certificate (1)
Option 2: