certificate-manager.log file.This error is triggered by OpenSSL used by certificate-manager tool.
This issue occurs due to the certificate chain provided while replacing certificate does not have complete chain.
To resolve "error 20 at 0 depth lookup:unable to get local issuer certificate" when replacing Machine SSL or Solution user certificate with custom certificate follow the steps below: