Computer manager <name> with Id <ID> connection config is invalid. Edit Hostname and provide computer manager credentials. (Error code: 7055)
Certificate Chain of Computer Manager <name> is invalid. Please check Issuer and subject in the chain. (Error code: 90204)
/var/log/cm-inventory/cm-inventory.log
file on the NSX manager node:2021-06-28T17:01:44.440Z INFO http-nio-127.0.0.1-7443-exec-2 NsxTrustManagerBinding - SYSTEM [nsx@6876 comp="nsx-manager" level="INFO" subcomp="cm-inventory"] Try create TrustManager of type PKIX
2021-03-01T13:09:45.651Z WARN http-nio-127.0.0.1-7443-exec-2 VcUtilsImpl - SYSTEM [nsx@6876 comp="nsx-manager" level="WARNING" subcomp="cm-inventory"] IOException occurred
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: Unable to find certificate chain.
at sun.security.ssl.Alerts.getSSLException(Alerts.java:198) ~[?:1.8.0_251]
/var/log/cm-inventory/cm-inventory.log
file on the NSX manager node:2024-06-24T19:45:24.327Z ERROR http-nio-127.0.0.1-7443-exec-2 VcPlugin 4732 SYSTEM [nsx@6876 comp="nsx-manager" errorCode="MP40219" level="ERROR" reqId="11111111-2222222-7e7e7e7e7" subcomp="cm-inventory" username="admin"] Certificate of Vc example.com is invalid. It might be caused by issuer not being same as subject of next certificate in certificate chain.
/var/log/cm-inventory/cm-inventory.log
file on the NSX manager node:2021-11-12T15:56:41.601Z ERROR http-nio-127.0.0.1-7443-exec-3 VcPlugin - SYSTEM [nsx@6876 comp="nsx-manager" errorCode="MP40106" level="ERROR" subcomp="cm-inventory"] Unable to login with username password for 192.168.1.253
com.vmware.vim.vmomi.client.exception.SslException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: No issuer certificate for certificate in certification path found.
at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setError(ResponseImpl.java:261) ~[vlsi-client-7.0.1.8343824.jar:?]
at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.setResponseError(HttpExchangeBase.java:311) ~[vlsi-client-7.0.1.8343824.jar:?]
at com.vmware.vim.vmomi.client.http.impl.HttpExchange.invokeWithinScope(HttpExchange.java:57) ~[vlsi-client-7.0.1.8343824.jar:?]
The vCenter certificate chain needs to be checked and fixed.
The following steps can be used:
openssl s_client -showcerts -debug -connect <VC-IP>:443
/tmp
directory on the vCenter Server/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store machine_ssl_cert --alias __MACHINE_CERT --output /tmp/origmachinecert.crt
/usr/lib/vmware-vmafd/bin/vecs-cli entry getkey --store machine_ssl_cert --alias __MACHINE_CERT --output /tmp/origmachinekey.key
/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store machine_ssl_cert --alias __MACHINE_CERT
/usr/lib/vmware-vmafd/bin/vecs-cli entry create --store machine_ssl_cert --alias __MACHINE_CERT --cert /tmp/correctmachinecert.crt --key /tmp/origmachinekey.key
/etc/vmware-vpx/ssl/rui.crt
also has the incorrect certificate chain, edit rui.crt
and paste in the correct certificate chain