vSAN Health Service Fails to Start After SSL Certificate Replacement
search cancel

vSAN Health Service Fails to Start After SSL Certificate Replacement

book

Article ID: 430111

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSAN

Issue/Introduction

  • The vSAN Health service repeatedly fails to start following an SSL certificate replacement on the vCenter Server. This blocks Cloud Native Storage (CNS) operations and storage functionality for vSphere with Tanzu workloads. The service reports an "Invalid SSL Certificate" error despite the presence of correct certificate files.
  • Errors observed in vCenter logs:
    • /var/log/vmware/vsan-health/vsan-health.log: "Invalid SSL Certificate"
    • /var/log/vmware/vpxd/vpxd.log: SSL handshake failures to vsan-health endpoint

Environment

  • VMware vCenter Server
  • VMware vSAN

Cause

  • Incomplete certificate propagation occurs after replacing /etc/vmware-vpx/ssl/rui.crt. The vpxd service retains the expired certificate in memory/cache, causing an SSL validation failure when vsan-health attempts a TLS connection during startup.

Resolution

 

  1. SSH to the vCenter Server Appliance as root.

  2. Verify the new certificate validity and check against the trusted CA: openssl x509 -in /etc/vmware-vpx/ssl/rui.crt -text -noout | grep -E "(Not Before|Not After)" openssl verify /etc/vmware-vpx/ssl/rui.crt

  3. Replace the certificate files with the new valid certificates: cp /path/to/new-rui.crt /etc/vmware-vpx/ssl/rui.crt cp /path/to/new-rui.key /etc/vmware-vpx/ssl/rui.key

  4. Set the correct permissions and ownership on the certificate files: chmod 600 /etc/vmware-vpx/ssl/rui.* chown root:root /etc/vmware-vpx/ssl/rui.*

  5. Restart ALL vCenter services to clear the vpxd certificate cache: service-control --stop --all service-control --start --all

  6. Verify the vsan-health service has started successfully: service-control --status vsan-health

 

Additional Information

  • If services fail to restart, check service dependencies using service-control --status --all | grep -v Started and manually cycle the vpxd and vSAN Health services.
  • For certificate chain issues, ensure full chain verification by concatenating rui.crt and chain.pem and verifying against the root CA using: openssl verify -CAfile /etc/vmware-vpx/ssl/root.crt fullchain.crt