Getting TLS working

"Neil Youngman" <[email protected]> Tue, 25 Jan 2005 16:51:05 -0000
Newsgroups gmane.comp.lib.libesmtp
Organization Wirefast Limited
Message-ID <[email protected]>
I'm trying to use libesmtp with TLS and I have been unable to get it
working.

I'm testing with an Exim mail server that is configured for TLS and
offers STARTTLS. If I require TLS my program just sends a quit to Exim.
If I just enable TLS it tries to send unencrypted. My best guess is that
it doesn't like my configuration in some way. I have the root
certificate in ~/.authenticate/ca.pem and the client certificate in
~/.authenticate/private/smtp-starttls.pem. Everything is readonly.

Am I missing anything? Does the code need anything more than
smtp_starttls_enable()?

Are there any keys or pass phrases needed? What else could stop it from
initiating a TLS session?


Neil Youngman
Wirefast Limited


Tel:  +44 (0) 8701 53 63 73
Fax: +44 (0) 8701 56 66 76
 
Visit our website at http://www.wirefast.com

This message contains confidential information and is intended only 
for the individual named. If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.