How to Fix Expired Certificates on VMware vCenter with vCert

How to Fix Expired Certificates on VMware vCenter with vCert

How to fix expired certificates on VMware vCenter with vCert

When vCenter certificates expire, the vSphere Client stops loading, services fail to start and ESXi hosts drop out of management. Broadcom’s free vCert script is the fastest way back: one menu-driven Python tool that checks, renews and replaces every vCenter certificate from the appliance shell.

vCert.py · Check current certificate status
Machine SSL certificate2026-11-02EXPIRED
Solution User: vpxd2026-11-02EXPIRED
Solution User: vpxd-extension2026-11-02EXPIRED
STS signing certificate2026-11-18EXPIRED
VMCA root certificate2031-06-04VALID

This guide walks through the full recovery: snapshot, upload, run vCert, reset certificates, restart services and verify. It is based on Broadcom KB 385107, current version vCert 6.1.2 (July 2026).

Signs your vCenter certificates have expired

If you see any of these, check certificates first:

  • The vSphere Client shows “503 Service Unavailable” or a blank login page.
  • A white page with a single line: “No upstream…”.
  • vpxd, vsphere-ui or vmware-stsd will not start after a reboot.
  • Login fails with token or STS errors, even with correct credentials.
  • ESXi hosts show as disconnected, or vSphere HA and vSAN report errors.
  • Backup tools and integrations (Veeam, NSX, SRM) can no longer connect to vCenter.

A quick manual check from the appliance shell lists every store and its expiry dates:

bash
for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list); do
  echo "== $store"
  /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -E "Alias|Not After"
done

What is vCert?

vCert (vCert.py) is a Broadcom-supplied Python script that replaces the built-in certificate-manager utility. It runs from the vCenter Server Appliance shell and handles almost every certificate task through a simple numbered menu.

Why use it instead of certificate-manager:

  • It runs a full health check before you change anything: expired certs, certs expiring within 30 days, missing CA chains, wrong SAN/PNID and weak signature algorithms.
  • It fixes the things people usually forget: SSL trust anchors in the Lookup Service, vCenter extension thumbprints (EAM, vLCM, vSAN health) and the STS signing certificate.
  • It backs up certificates before replacing them, and logs everything to /var/log/vmware/vCert/vCert.log.
  • It also covers ESXi host certificates and can generate a full certificate report.

The main menu:

Before you start

Take a snapshot first. Certificate changes can leave vCenter unbootable, and a snapshot is your only fast way back.

Step-by-step: renew expired certificates with vCert

  1. Download vCert

    Download the latest zip (currently vCert-6.1.2-20260713.zip) from the Attachments section of KB 385107, or from here. Verify the hash before uploading:

    powershell
    Get-FileHash .\vCert-6.1.2-20260713.zip -Algorithm SHA256
    # Expected: e0f3abad77b6cbf74232087ccb7cffa17c67d8098b00ff254e60bdc6bcad9731
  2. Upload it to vCenter

    SCP fails if root’s default shell is the appliance shell, so switch it to Bash first:

    bash
    ssh root@vcenter.example.local
    shell
    chsh -s /bin/bash root
    mkdir -p /root/vcert

    Then copy the file with WinSCP or scp:

    bash
    scp vCert-6.1.2-20260713.zip root@vcenter.example.local:/root/vcert/
  3. Extract and run

    bash
    cd /root/vcert
    python -m zipfile -e vCert-6.1.2-20260713.zip .
    cd vCert-6.1.2-20260713
    chmod +x vCert.py
    ./vCert.py

    Type y to accept the warning, then enter the SSO administrator credentials when prompted. You can also pass them on the command line with --user and --password.

  4. Check the current status (option 1)

    Run option 1. Check current certificate status first. vCert flags each certificate as expired, expiring within 30 days, or misconfigured. Note which ones fail; this decides the fix.

  5. Replace the certificates

    Pick the path that matches your environment:

    Default VMCA certificates (most environments)

    Choose option 6. Reset all certificates with VMCA-signed certificates. In one run it re-issues:

    • Machine SSL certificate, plus SSL trust anchors and extension thumbprints
    • Solution User certificates (machine, vpxd, vpxd-extension, vsphere-webclient, wcp, hvc)
    • STS signing certificate
    The VMCA root itself has expired

    Use 3. Manage certificates → 9. VMCA certificate. This replaces the root CA and re-issues Machine SSL, Solution User and STS signing certificates under it.

    Custom CA-signed Machine SSL (corporate PKI or public CA)

    Use 3. Manage certificates → 1. Machine SSL certificate. vCert can generate the private key and CSR for you; sign it on your CA, then import the certificate. Include the full CA chain, or vCert will prompt for it.

    Only the STS signing certificate expired

    Login fails but everything else is valid. Use 3. Manage certificates → 8. STS signing certificates.

    Scheduled tasks: replacing the STS signing certificate invalidates the tokens saved for user-created vCenter scheduled tasks. Delete and recreate those tasks afterwards.

  6. Fix trust anchors and thumbprints if flagged

    If the status check still reports problems, use 4. Manage SSL trust anchors → 2. Update for Lookup Service registrations, and 3 → 7. vCenter Extension thumbprints for EAM, vLCM and vSAN health mismatches.

Restart services and verify

vCert usually offers to restart services at the end of a replacement. If not, use 8. Restart services → 1. Restart all VMware services, or from the shell:

bash
service-control --stop --all && service-control --start --all
service-control --status --all

Then confirm the fix:

  1. Re-run vCert option 1. Every certificate should now report as valid.
  2. Log in to the vSphere Client at https://<vcenter-fqdn>/ui.
  3. Check that all ESXi hosts are Connected. If a host shows disconnected, right-click → Connection → Disconnect, then Connect.
  4. Run option 9. Generate certificate report and keep it for your documentation. It is saved under /var/log/vmware/vCert/.
  5. Re-test integrations (backup, NSX, SRM, monitoring). Some will ask you to accept the new vCenter thumbprint.
  6. Once everything works, delete the snapshot. Don’t leave it running for weeks.

Tips and troubleshooting

Upgrade to vCenter 8.0 U3h or later
From that build, VMCA-issued Machine SSL and ESXi certificates renew automatically 5 days before expiry, as long as the certificate mode is vmca.
Clean up old certificates
Use 3 → 12 to clear expired certificates from the VECS BACKUP_STORE, which otherwise keeps raising false alarms.
Behind a proxy that inspects SSL?
Run 5 → 1. Check for SSL Interception. vCert detects the proxy CA and offers to import it so update checks work again.
Logs and backups
Everything vCert does is logged to /var/log/vmware/vCert/vCert.log, and certificate backups are kept under /storage/vCert/<date>/.
Monitor expiry going forward
Add a monthly vCert status check or a monitoring alert (Zabbix, PRTG, etc.) so certificates never expire silently again.
When in doubt, open a case
Broadcom states vCert is meant to be used under the direction of its support team. For production or ELM environments, open a support case if anything looks unusual.

Conclusion

Expired certificates are one of the most common reasons a vCenter suddenly stops working, and vCert turns a long, error-prone manual procedure into a few menu choices. Snapshot first, run the status check, reset or replace the certificates, restart services and verify. Most environments are back online in under 30 minutes.

Leave a Reply

Your email address will not be published. Required fields are marked *