Users may encounter errors when running the vCert script, such as:
Certificate will not expire -1: syntax error in expression (error token is "will not expire -1")
VMware vCenter Server 8.0.3.00600
The vCert tool attempts to evaluate certificate expiration values. In some environments, certain certificates return the string "Certificate will not expire" instead of a numeric expiration date. Older versions of the vCert script are unable to handle this output, which results in the syntax error shown above
To avoid these parsing errors going forward:
Use the latest version of the VCF Diagnostic Tool (VDT), which includes updated certificate checks and avoids this script parsing issue.
Follow the instructions provided in the Broadcom KB article for running the VDT:
Important Note:
Always cross-check to confirm that none of the vCert certificates are actually expired. This is a script parsing issue, not a problem with the certificates themselves. As shown in the output