I would like to get rid off the "Verify return code: 19 (self signed certificate in certificate chain)" message when connecting to my imap server via SSL.
The server ssl certificate is issued by Thawte CA and the CA certificate is stored in /etc/ssl/certs/thawte.pem. When I run
s_client -connect imap.mydomain.com:993 -showcerts -CApath /etc/ssl/certs
The error message disappears, so it seems to me that default path where openssl searches for CA certificates is different.
Is there a way how to make openssl to look up the /etc/ssl/certs directory by default?
Thanks for helping in advance