[400] An error occurred while sending an authentication request to the vCenter Single Sign-On server - An error occurred when processing the metadata during vCenter Single Sign-On setup, premature end of file
vCenter 8.x
VCF 5.x
This issue may be caused by expired or invalid STS certificates, or because the signing root certificate has expired. An expired STS certificate prevents internal services and solution users from acquiring valid tokens, causing them to fail as expected.
NOTE: If the vCenter Server is standalone, ensure you take a snapshot. If the servers are in linked mode, power off all vCenter servers within the same SSO domain before taking snapshots.
Procedure to replace the STS signing certificate,
Use the new and improved certificate management tool - vCert - Scripted vCenter Expired Certificate Replacement - for all certificate management/replacement workflows.
For more information on viewing the STS certificate and determining the expiry date, see Checking Expiration of STS Certificate on vCenter Server.