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.
- My certificate needs to be merged with intermediate certificate into one file:
$ cat intermediate.pem cert.pem > combined.pem
- Then we can test it using openssl verify command:
$ openssl verify -CAfile rootcert.pem combined.pem