Problem connecting to TLS sockets with self-signed certificates

 

Greetings!

I cannot express my gratitude enough to Vlamidir, and Sergio Golubev for how far they've brought me in coding with MQL4/5.

Today, I come with a different problem. I'm having trouble connecting to a python socket server that runs on a self-signed tls certificate. It is failing with the message "Protocol error", but successfully connects to sites such as google.com. I have tried investigating whether the problem is a cause of the absence of subjectAltName, but the error message from the terminal is too vague. Has anyone managed to accomplish such a thing, given that the metatrader5 client will be distributed to multiple devices?