I created 2 intermediate certificates called cert1.crt and cert2.crt signed by a common cert0 root and i need to verify them using verify command.
I type:
verify -CAfile cert1.crt cert2.crt
What I get is:
error 20 at 0 depth lookup:unable to get local issuer certificate.
Same error appears when i replaced .crt files with the two .pem files i generated from the certificates. What am i doing wrong? i use OpenSSL toolkit my operating system is Windows 8.