HCX Site Pairing Down with error UntrustedCertificateException
search cancel

HCX Site Pairing Down with error UntrustedCertificateException

book

Article ID: 425053

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

  • HCX Site Pairing is down and it shows the below error message :
    com.vmware.vchs.hybridity.adapters.https.UntrustedCertificateException: 
    PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed

  • You would observe the following log entries in the HCX Manager  : /common/logs/admin/web.log
    <timestamps> UTC [https-jsse-nio-127.0.0.1-8443-exec-13, Ent: HybridityAdmin, , TxId: TxId: ####-####-c1c14cfa29b3] WARN  c.v.v.h.inventory.InventoryAdapter- Can not collect resources from the cloud: https://<cloud-hcx-fdqn/ip>
    java.lang.Exception: Remote cloud registration record is invalid
    <timestamps> UTC [https-jsse-nio-127.0.0.1-8443-exec-15, Ent: HybridityAdmin, , TxId: TxId: ####-####-bab2dc88c0db] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet]- Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.vmware.vchs.hybridity.adapters.https.UntrustedCertificateException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed] with root cause
    java.security.SignatureException: Signature does not match.
    at java.base/sun.security.x509.X509CertImpl.verify(X509CertImpl.java:456)
  • You would observe the following log entries in the HCX Manager  : /common/logs/admin/app.log
    <timestamps> UTC [EventingService_SvcThread-19400, Ent: HybridityAdmin, , TxId: ####-####-5f664a34c628] ERROR c.v.v.h.s.e.c.EventingRestClient- Failure on pull events from remote, remote address: <uuid>
    com.vmware.vchs.hybridity.adapters.https.UntrustedCertificateException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
    Caused by: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
    Caused by: com.vmware.vchs.hybridity.adapters.https.CertificateChainException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
    Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
    Caused by: java.security.cert.CertPathValidatorException: signature check failed
    Caused by: java.security.SignatureException: Signature length not correct: got 512 but was expecting 256

Environment

VMware HCX 

Resolution

  • This issue can be resolved by following the steps outlined below. This procedure must be performed on your Source (On-Premises) HCX environment.

      Import Remote Certs:
      • Navigate to Administration > Certificate > Trusted Root Certificates
      • Ensure the root/intermediate CA of the remote site is present.
    • Reconfigure the Site Pair: Go to the Site Pairing tab in the HCX UI.
      • Select the affected connection and click Edit.
      • Re-enter the credentials; this often triggers a prompt to "Accept" a new certificate thumbprint.

    Additional Information