vCenter Server upgrade pre-check shows below error message
Verification of the machine SSL certificate failed due to an invalid trusted root certificate chain. ERROR: [2, 2, 'unable to get issuer certificate'] . Unable to find the root certificate with the subject '<X509Name object '/C=US/ST=#####/L=#####/O=######.com, Inc./CN=#######'>'
vCenter sever
This issue is caused due to invalid Machine SSL certificate chain that is incomplete.
Below example illustrates the use case where the CA certificate chain consists of one or more intermediate root certificates and how it forms a chain of trust with the Machine SSL certificate,Machine ssl certificate (Signed by intermediate CA CertificateB)
CertificateB (Signed by intermediate CA CertificateC)
CertificateC (Signed by Self-signed RootCertificate)
RootCertificate (Trust anchor)
If any of the intermediate CA certificate .i.e. either CertificateB
or CertificateC
or RootCertificate
is missing, then chain of trust is broken and the verification of the chain will fail.
To resolve this issue, import the missing CA certificate into the TRUSTED_ROOTS store on vCenter Server.
The pre-check error will contain the subject of the missing CA certificate as shown below
Unable to find the root certificate with the subject 'X509Name object '/C=US/ST=#####/L=#####/O=######.com, Inc./CN=#######''
The certificate can be imported using any of below methods :
dir-cli trustedcert publish
" in dir-cli command referenceSample steps to export the CA Certificate from local Windows Desktop:
Note: This is just an example to show how to export CA certificate from the Certificate Path based on issuer name ("Go Daddy Root Certificate Authority - G2" in this example).