Hi, I've managed to solve the "return code: 21 (unable to verify the first certificate)" part. Did a "cat server_ssl_cert.pem CA_intermediate_cert.crt CA_root_cert.crt > imapd.pem and set this as TLS_CERTFILE (no change of TLS_TRUSTCERTS).
Still don't have TLS working though. The connection hangs as below: $ openssl s_client -starttls imap -tls1_2 -connect hostname:993 -crlf CONNECTED(00000003) > When I connect to the service by "openssl s_client -connect > > hostname:993", and only TLS is enabled, then the only thing presented is > > "CONNECTED(00000003)". The connection is kept open but no data is > > transferred. If ssl is enabled, I always get a "return code: 21 (unable > > to verify the first certificate)". > > openssl s_client -connect hostname:993 -crlf > > The -crlf is likely the problem. Didn't know how a conversion from LF to CRLF would help on this, but (as seen above) tested it and it didn't work. Best regards, On Sat, Oct 10, 2015 at 11:34 PM, Steve Shockley < [email protected]> wrote: > On 10/10/2015 11:24 AM, bit_hi te wrote: > > When I connect to the service by "openssl s_client -connect > > hostname:993", and only TLS is enabled, then the only thing presented is > > "CONNECTED(00000003)". The connection is kept open but no data is > > transferred. If ssl is enabled, I always get a "return code: 21 (unable > > to verify the first certificate)". > > openssl s_client -connect hostname:993 -crlf > > The -crlf is likely the problem. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > courier-users mailing list > [email protected] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users >
------------------------------------------------------------------------------
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
