From 3617494917bf2df201be6bf3920a9415d57abc06 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 6 Jan 2022 23:52:24 +0100 Subject: [PATCH] Default to unencrypted connection because the required old ssl protocols aren't supported anymore --- mitel_ommclient2/connection.py | 4 ++++ mitel_ommclient2/session.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mitel_ommclient2/connection.py b/mitel_ommclient2/connection.py index a0d48e2..fea526f 100644 --- a/mitel_ommclient2/connection.py +++ b/mitel_ommclient2/connection.py @@ -80,6 +80,10 @@ class SSLConnection(Connection): """ Establishes a secure connection to the OM Application XML Interface + Please not that this class might be useless on your system since new + versions of OpenSSL don't ship with TLVv1.2 or lower anymore which are + the protocols supported by OMM. + :param host: Hostname or IP address of OMM :param port: Port of the OM Application XML ssl TCP port diff --git a/mitel_ommclient2/session.py b/mitel_ommclient2/session.py index c5d0103..6c5c30c 100644 --- a/mitel_ommclient2/session.py +++ b/mitel_ommclient2/session.py @@ -27,7 +27,7 @@ class Session: self.port = port self.connection_class = connection_class if self.connection_class is None: - self.connection_class = connection.SSLConnection + self.connection_class = connection.Connection self._connection = None