Tag Archives: intermediate

openssl verify error 20 at 0 depth lookup:unable to get local issuer certificate

When testing my certificate against intermediate and root certificate I received the following error: error 20 at 0 depth lookup:unable to get local issuer certificate. The issue is probably related to the chain of the certificate so we need to create reliable chain.

  1. My certificate needs to be merged with intermediate certificate into one file:
    $ cat intermediate.pem cert.pem > combined.pem
  2. Then we can test it using openssl verify command:
    $ openssl verify -CAfile rootcert.pem combined.pem