error 2 at 1 depth lookup: unable to get issuer certificate at 0 %certificate-manager.log file, entries similar to the following will appear:YYYY-MM-DDTHH:MM:SS.SSSZ INFO certificate-manager Command executed successfullyYYYY-MM-DDTHH:MM:SS.SSSZ INFO certificate-manager Certificate backup created successfully>YYYY-MM-DDTHH:MM:SS.SSSZ INFO certificate-manager Running command :- ['D:\\Program Files\\VMware\\vCenter Server\\/openSSL/openssl.exe', 'verify', '-CAfile', 'D:\\CSR\\Vcenter_certificate2\\ROOT.cer', 'D:\\CSR\\Vcenter_certificate2\\Machine_SSL.cer']YYYY-MM-DDTHH:MM:SS.SSSZ INFO certificate-manager Command output :- >D:\CSR\Vcenter_certificate2\Machine_SSL.cer: DC = group, DC = essilor, DC = asia, CN = asia-SGDC1CERT001P-IssuingCAerror 2 at 1 depth lookup:unable to get issuer certificate
YYYY-MM-DDTHH:MM:SS.SSSZ ERROR certificate-manager D:\CSR\Vcenter_certificate2\Machine_SSL.cer: DC = group, DC = essilor, DC = asia, CN = asia-SGDC1CERT001P-IssuingCAerror 2 at 1 depth lookup:unable to get issuer certificate
To resolve this issue:
----BEGIN CERTIFICATE-----[SECONDARY INTERMEDIATE CERTIFICATE]-----END CERTIFICATE----------BEGIN CERTIFICATE-----[PRIMARY INTERMEDIATE CERTIFICATE]-----END CERTIFICATE----------BEGIN CERTIFICATE-----[ROOT CERTIFICATE]-----END CERTIFICATE-----openssl to double check the issuer and the subject field of a given certificateecho " ----BEGIN CERTIFICATE----- [SECONDARY INTERMEDIATE CERTIFICATE] -----END CERTIFICATE-----" | openssl x509 -in /dev/stdin -noout -text | grep -i "subject\|issuer" echo " ----BEGIN CERTIFICATE----- [PRIMARY INTERMEDIATE CERTIFICATE] -----END CERTIFICATE-----" | openssl x509 -in /dev/stdin -noout -text | grep -i "subject\|issuer" echo " ----BEGIN CERTIFICATE----- [ROOT CERTIFICATE] -----END CERTIFICATE-----" | openssl x509 -in /dev/stdin -noout -text | grep -i "subject\|issuer"SECONDARY INTERMEDIATE CERTIFICATE" the Issuer should be the Subject of the "PRIMARY INTERMEDIATE CERTIFICATE"PRIMARY INTERMEDIATE CERTIFICATE" the Issuer should be the Subject of the "ROOT CERTIFICATE"ROOT CERTIFICATE" the Issuer should be the Subject of the "ROOT CERTIFICATE"Note: In most of the cases, the intermediate cert or root CA is affected.