I have a strange problem connecting from a C++ application using the Paho framework to the stunnel. The certificates are self signed, and MQTT Explorerr hooks up nicely and validates the certificate when fed with the appropriate ca certificate.
So, stunnel seems to behave nicely on some cases, others not.
The stunnel log shows a SSL_accept: ssl/record/ssl3_record_c:354: errror: 0A00010B:SSL wrong version.
I have tried version 1.1 and 1.2 in the Paho library, both failing with the same error code.
Any ideas or suggestions?