Getting SSL errors passing traffic through DNS proxy using stunnel

My server is running stunnel and using an SSL cert from Let’s Encrypt. On my client PC when I try to pass traffic to the server through stunnel, I am getting the following error:

Service [TEST] accepted connection from 127.0.0.1:51042
s_connect: connected 104.21.73.184:443
Service [TEST] connected remote server from 128.x.x.x:51043
CERT: Pre-verification error: unable to get local issuer certificate
Rejected by CERT at depth=1: C=US, O=“Cloudflare, Inc.”, CN=Cloudflare Inc ECC CA-3
SSL_connect: ssl/statem/statem_clnt.c:1882: error:0A000086:SSL routines::certificate verify failed
Connection reset: 0 byte(s) sent to TLS, 0 byte(s) sent to socket

This only happens when I have Cloudflare’s DNS proxy enabled. When I turn it off everything flows as expected, but I want to be able to keep it on. Can anyone help me figure out what my problem is?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.