diff --git a/pyvlx/connection.py b/pyvlx/connection.py index 743edb7a..f48df197 100644 --- a/pyvlx/connection.py +++ b/pyvlx/connection.py @@ -159,7 +159,7 @@ def write(self, frame: FrameBase) -> None: @staticmethod def create_ssl_context() -> ssl.SSLContext: """Create and return SSL Context.""" - ssl_context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH) + ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ssl_context.check_hostname = False ssl_context.verify_mode = ssl.CERT_NONE return ssl_context