Failed to deploy Network Extension / Failed to extend Network and reported error message "PKIX path building failed" - HCX
search cancel

Failed to deploy Network Extension / Failed to extend Network and reported error message "PKIX path building failed" - HCX

book

Article ID: 311832

calendar_today

Updated On:

Products

VMware HCX VMware vSphere ESXi

Issue/Introduction

HCX failed to deploy NE and reported the error message below when resyncing the service mesh:

Validate RemoteService Mesh failed. Interconnect Service Workflow ValidateRemoteServiceMesh failed. Error: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuildingException: unable to find valid certification path to requested target.

Re Authenticating: The NSX manager failed with the error - "Untrusted SSL," and logs show the following error:  

  • /common/logs/appliance-management/appliance-management.log

    ##:##:##:##.### [main] ERROR com.vmware.hybridity.admin.config.ApplianceConfigValidator - Unable to verify the endpoint link details for https://<NSX Manager FQDN>
    com.vmware.vchs.hybridity.adapters.https.UntrustedCertificateException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

An additional cause of this error is induced by recent NSX SSL certificate rotations.

Environment

VMware HCX
VMware NSX 

Cause

This issue is due to a change in the NSX-T Manager SSL certificate.
  1. Check the NSX-T manager sha256 cert fingerprint via a web browser



  2. Navigate to the HCX Manager Admin UI page (https://<IP-or-FQDN>:9443) > Administration > Certificate > Trusted CA Certificate. Verify the trusted NSX-T manager cert is correct.

 



Resolution

  1. Start by logging into the HCX Connector / Manager appliance VAMI on port 9443: http://<IP-or-FQDN:9443> as the admin user
  2. On the Dashboard tab check if the connection status dot is green or red on the NSX tile



  3. If the NSX status is red, then click on "MANAGE", if the status is green then Re-import the newly updated NSX Manager certificate
  4. Resubmit the NSX admin credentials and click "SAVE"
  5. On the Certificate Warning click "IMPORT CERTIFICATE"
  6. Go to the Appliance Summary tab and restart services (app-engine, web-engine, etc)
  7. Login to HCX and retry the Network Extension operation

Re-import the newly updated NSX Manager certificate: 

  1. Navigate to the HCX appliance management interface: https://<IP-or-FQDN>:9443
  2. Navigate to the Administration tab
  3. Select Certificate > Trusted CA Certificate on the side menu
  4. Select the certificate import option: URL
  5. Enter the IP or FQDN that the NSX Manager
  6. Click Apply



  7. Ensure the NSX connection status is green on the Dashboard
  8. Login to HCX and retry the Network Extension operation