After updating the root certificate signature algorithm from SHA1 to SHA2, the following error occurs during the stage2 pre-check of the upgrade vCenter Server from 7.0 to 8.0.
Error Support for certificates with weak signature algorithms has been removed in vCenter Server 8.0. The certificate with subject '/DC=###/CN=###/...' in VECS store TRUSTED_ROOTS has weak signature algorithm sha1WithRSAEncryption.
Resolution Replace the certificate with subject '/DC=###/CN=###/...' in VECS store TRUSTED_ROOTS with a certificate that uses the SHA-2 signature algorithm. Caution: Verify that any certificates signed by the problematic certificate are not in use by vCenter Server. Refer to the vCenter Server release notes and VMware KB 89424 for more details.
You can see similar to the following result by running vsphere8_upgrade_certificate_checks.py of KB 313460.
YYYY-MM-DD hh:mm:ss.fffZ ERROR #################### Errors Found ####################
YYYY-MM-DD hh:mm:ss.fffZ ERROR
YYYY-MM-DD hh:mm:ss.fffZ ERROR Support for certificates with weak signature algorithms has been removed in vSphere 8.0. Weak signature algorithm certificates must be replaced before upgrade. Refer to the vSphere release notes and VMware KB 89424 for more details. Correct the following 1 issues before proceeding with upgrade.
YYYY-MM-DD hh:mm:ss.fffZ ERROR
YYYY-MM-DD hh:mm:ss.fffZ ERROR 1. The certificate with subject '/DC=###/CN=###/...' in VECS store TRUSTED_ROOTS has weak signature algorithm sha1WithRSAEncryption. The certificate thumbprint is ##:##:...##:##. The certificate Subject Key Identifier is ##:##:...##:##. Caution: Verify that any certificates signed by the problematic certificate are not in use by vCenter Server.
YYYY-MM-DD hh:mm:ss.fffZ ERROR
YYYY-MM-DD hh:mm:ss.fffZ ERROR ######################################################
VMware vCenter Server 8.0.x
Remove root certificates of SHA1 signature algorithm using vCert.py.
To remove root certificates of SHA1 signature algorithm, please see the steps below.
./vCert.pyDo you acknowledge the risks and wish to continue? [y/n]:3. Manage certificates".3. CA certificates in VMware Directory".Please enter a Single Sign-On administrator account [[email protected]]: [email protected] at the prompt below and press Enter.Please provide the password for [email protected]: ----- CA Certificates in VMware Directory ----------------------------------------------------------------- 1. Alias: ####################################### Subject: Issuer: End Date: MMM DD hh:mm:ss YYYY GMT Subject Key ID: Is CA Cert: Yes 2. Alias: ####################################### Subject: Issuer: End Date: MMM DD hh:mm:ss YYYY GMT Subject Key ID: Is CA Cert: Yes . -----2. Remove CA certificate(s) from VMware Directory".Enter the number(s) of the certificate(s) to delete (multiple entries separated by a comma): ----- Remove Certificate(s) from VMware Directory ----------------------------------------------------------------- . . Refreshing CA certificates to VECS OK -----ctrl + c to exit vCert.pyservice-control --stop --all && service-control --start --allNote: If using Sectigo custom Machine SSL cert, please follow KB 312566 to download and import the SHA2 version of the root certificate