Hi, I have this problem. After 10 years, the vCenter certificates have expired. The vCenter is on the Windows platform and all the VMware guides are no longer available. The certificates are self-generated ones. Do you have any guides for regenerating the self-signed ones?
Original Message:
Sent: Sep 01, 2026 03:47 PM
From: Shen88
Subject: STS certificate expiration
The "Invalid Credentials" error combined with "STS Certificate" concerns in vCenter Server Appliance (VCSA) 5.1 or 5.5 typically points to an expired or invalid Security Token Service (STS) signing certificate or a mismatch in LDAP bind credentials.
Likely expired STS Certificate: The STS certificate is crucial for token-based authentication. If it expires, the VMware Directory Service (vmdird) and STS services often fail to authenticate users, leading to "Invalid Credentials" (frequently reported as LDAP error 49).
- LDAP Bind Failure: VCSA stores machine account passwords. If the password in the registry does not match the password in the
vmdird database (often caused by snapshot reverts or backups), the vmware-sts service will fail to start.
Troubleshooting Recommendation:
Given that VCSA 5.1 and 5.5 are end-of-life versions, the specific modern troubleshooting tools (such as vCert or dir-cli) referenced in current documentation may not be available or applicable.
- Check Service Logs: Inspect the following logs for specific error codes or "Invalid Credentials" messages:
/var/log/vmware/vmdird/vmdird-syslog.log/var/log/vmware/sso/vmware-identity-sts.log- Look for
SASL errors or LDAP error 49.
- Verify Service Status: Confirm if the
vmware-sts and vmdird services are running. If they fail to start, authentication will be impossible. - Restore or Revert: If this issue started after reverting to a snapshot or restoring from a backup, the machine account password in the registry and
vmdird database are likely out of sync.
------------------------------
If you find this answer right, please 'Recommend' this post.
Thank you!
Regards,
Shen
------------------------------
Original Message:
Sent: Nov 15, 2024 06:52 AM
From: flipflip
Subject: STS certificate expiration
Hello everyone,
I managed to generate valid certificates thanks to this documentation : Regenerating Self-Signed SSL Certificates in VMware vCenter Server appliance 5.1 or 5.5 . Unfortunately, after rebooting the vSphere server, I still get the error message:
Cannot authentificat user
Return code is: InvalidCredentials
And the vSphere server part still does not start.
Original Message:
Sent: Nov 14, 2024 10:53 AM
From: Navin A
Subject: STS certificate expiration
Hello Flip,
Not sure if its a windows vCenter or Appliance
Windows:
Stop the STS Service by running the command:
net stop VMwareSTS
Navigate to default vmware-sso directory
cd c:\ProgramData\VMware\CIS\cfg\vmware-sso
Run this command to re-install the STS with the default STS certificate:
"c:\Program Files\Common Files\VMware\VMware vCenter Server - Java Components\bin\java.exe" -cp "c:\Program Files\VMware\Infrastructure\VMware\CIS\vmware-sso\*;c:\Program Files\VMware\Infrastructure\VMware\CIS\vmware-sso\lib\*;.;*" com.vmware.identity.installer.STSInstaller --install --root-cert-path ssoserverRoot.crt --cert-path ssoserverSign.crt --private-key-path ssoserverSign.key --retry-count 2 --retry-interval 30
Start the STS Service by running this command:
net start VMwareSTS
Appliance:
export JAVA_BIN=/usr/java/jre-vmware/bin/java
export CLASSPATH=/opt/vmware/lib64/*:/usr/lib/vmware-sso/commonlib/*
export _SSO_ROOT_CERT_X509=/etc/vmware-sso/keys/ssoserverRoot.crt
export _SSO_SIGNING_LEAF_CERT_X509=/etc/vmware-sso/keys/ssoserverSign.crt
export _SSO_SIGNING_LEAF_CERT_KEY=/etc/vmware-sso/keys/ssoserverSign.key
$JAVA_BIN -cp $CLASSPATH com.vmware.identity.installer.STSInstaller --install --root-cert-path "$_SSO_ROOT_CERT_X509" --cert-path "$_SSO_SIGNING_LEAF_CERT_X509" --private-key-path "$_SSO_SIGNING_LEAF_CERT_KEY"