Troubleshooting "N7Vmacore3Ssl18SSLVerifyExceptionE" SSL Trust Mismatch / Host name does not match the subject name(s) in certificate.
search cancel

Troubleshooting "N7Vmacore3Ssl18SSLVerifyExceptionE" SSL Trust Mismatch / Host name does not match the subject name(s) in certificate.

book

Article ID: 432655

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware Live Recovery

Issue/Introduction

Users or automated services fail to connect to vCenter. Logs (such as vpxd.log or vsphere_client_virgo.log) display the following error:

A general system error occurred: N7Vmacore3Ssl18SSLVerifyExceptionE SSL Exception: Verification parameters:
PeerThumbprint: ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##
ExpectedThumbprint: ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##
ExpectedPeerName: #######################
The remote host certificate has these problems:
* Host name does not match the subject name(s) in certificate.
* unable to get local issuer certificate

Cause

A stale Lookup Service registration causes this issue. vCenter maintains a "database of trusts" (Lookup Service). If a certificate is replaced but the registration is not updated, the system expects the old thumbprint (ExpectedThumbprint) while the server presents the new one (PeerThumbprint).

The "Host name does not match" error indicates that the vCenter Fully Qualified Domain Name (FQDN) may be missing from the Subject Alternative Name (SAN) field of the current certificate.

Resolution

Correcting Hostname and Certificate via VAMI
To resolve initial hostname mismatches, ensure the vCenter Server Appliance (VCSA) uses an all-lowercase Fully Qualified Domain Name (FQDN).

1. Access VAMI: Log in to the management interface at https://<VCSA-IP-Address>:5480.
2. Verify Network Settings: Navigate to Summary > Networking > Hostname and DNS.
3. Standardize Hostname: Update the hostname to an all-lowercase FQDN (e.g., vc-server.example.com).
4. Update Certificates:
    Navigate to the Certificates menu.
    Select Change and update the FQDN to match the all-lowercase format established in the previous step.
    Confirm the change and allow the process to complete.

5. Validation: Refresh the browser and log back in. Confirm that the Common Name (CN=) reflects the lowercase FQDN.
6. Finalize Configuration: Return to the Summary tab and click Reconfigure to synchronize these settings.



Resolving SSL Thumbprint Mismatches

If a connection failure persists due to a handshake error, the Lookup Service is likely holding a stale certificate thumbprint. Use the lsdoctor utility to synchronize the internal database with your current certificates.

Note: Running lsdoctor requires a vCenter shutdown to take "powered-off" snapshots.

1. Safety Procedures
    Power off the vCenter Server Appliance (VCSA).
    Critical: Take a "powered-off" snapshot of the VCSA via the ESXi host. This provides a rollback point in the event of database corruption.
    Power the VCSA back on.

2. Tool Preparation
    Access the VCSA via SSH as the root user.
    Download the latest lsdoctor tool from the Broadcom Knowledge Base.
    Upload the lsdoctor.zip file to the /root or /tmp directory using a secure transfer tool (e.g., WinSCP).
    Extract the utility: cd /root unzip lsdoctor*.zip

3. Executing the Trust and Stale Fix
    Navigate to the tool directory: cd /root/lsdoctor*
    Run Trust Fix: Execute python lsdoctor.py --trustfix
             Confirm the snapshot prompt with "y" and provide the [email protected] password.

    Run Stale Fix: Execute python lsdoctor.py --stalefix
             Confirm the snapshot prompt and provide the [email protected] password.

    The utility will automatically align the ExpectedThumbprint with the PeerThumbprint.

4. Service Restart and Validation
    Restart the vCenter service stack to apply the changes: service-control --stop --all && service-control --start --all
    Log into the vSphere Client and verify that the "SSL Exception" error is resolved in modules such as Content Library or Host Management.
    Cleanup: Once functionality is confirmed, delete the VCSA snapshot to maintain system performance.

Additional Information

Using the 'lsdoctor' Tool
https://knowledge.broadcom.com/external/article/320837/using-the-lsdoctor-tool.html