I am using openssl v0.9.8r and I tried running this command (with the CA file name as cacert.pem in the directory in which I was running)
openssl s_client -CAfile cacert.pem -CApath ./ -connect mail.google.com:443
And the verification failed as follows
Verify return code: 20 (unable to get local issuer certificate)
However when I tried the same command on one of the older versions namely OpenSSL 0.9.8e-fips-rhel5 it succeeded as expected. Am I missing something here? I would greatly appreciate any help I can get as I have been stuck with openssl issues for a while now. Thanks a lot in advance.
Regards
Hari