Im having trouble with having OpenSSL connect to a server because of trust issues. I placed the CA certificate on /etc/ssl/certs/
and have run sudo c_rehash
and can see that the correct file has been made. I can see that CA certificate is in the ca-certificates.crt. However if I run:
openssl s_client -connect servername.domain.com:636
The command fails with Verify return code: 21 (unable to verify the first certificate)
If I do:
openssl s_client -connect servername.domain.com:636 -CApath /etc/ssl/certs/
I get Verify return code: 0 (ok)
What can I do so I dont have to specify the CApath?
I'm using Ubuntu 13.04.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…