On Sunday, May 31, 2026 at 01:26:29 AM GMT-5, Graham Jones via stunnel-users <stunnel-users@lists.stunnel.org> wrote:
I'm new to Stunnel.
stunnel 5.78 on x64-pc-mingw32-gnu platform Windows 7 Pro.
During installation, the process walked me through the creation of a
certificate.
I have these settings:
[Lopham-imap]
client = yes
accept = 127.0.0.1:52143
connect = mail.lopham.co.uk:993
CAfile = ca-certs.pem
The connection succeeds.
I add the following lines:
verifyChain = yes
checkHost = mail.lopham.co.uk
OCSPaia = yes
The connection fails with the following lines in the log:
2026.05.30 21:45:52 LOG5[2]: Service [Lopham-imap] accepted connection from
127.0.0.1:51901
2026.05.30 21:45:52 LOG5[2]: s_connect: connected 193.143.227.10:993
2026.05.30 21:45:52 LOG5[2]: Service [Lopham-imap] connected remote server
from 127.0.0.1:51902
2026.05.30 21:45:52 LOG4[2]: CERT: Pre-verification error: certificate not
found in local repository: self-signed certificate in certificate chain
2026.05.30 21:45:52 LOG4[2]: Rejected by CERT at depth=1: OU=generated by
AVG Antivirus for SSL/TLS scanning, O=AVG Web/Mail Shield, CN=AVG Web/Mail
Shield Root
2026.05.30 21:45:52 LOG3[2]: SSL_connect:
tls_post_process_server_certificate@ssl/statem/statem_clnt.c:2124:
error:0A000086:SSL routines::certificate verify failed: client
127.0.0.1:51901
2026.05.30 21:45:52 LOG5[2]: Connection closed/reset: 0 byte(s) sent to TLS,
0 byte(s) sent to socket
I see it finds the self-signed certificate in certificate chain. Why is
this rejected?
Any ideas, please?
Regards,
== Graham
_______________________________________________