From 2d379ac75c215f68888ae0606e9d0126b9774b65 Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Tue, 17 Dec 2024 22:59:17 +0000 Subject: [PATCH] Add possible SSL fix --- pyoverkiz/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyoverkiz/client.py b/pyoverkiz/client.py index f73474a9..3b8fb3dd 100644 --- a/pyoverkiz/client.py +++ b/pyoverkiz/client.py @@ -171,6 +171,10 @@ def __init__( # To avoid security issues while authentication to local API, we add the following authority to # our HTTPS client trust store: https://ca.overkiz.com/overkiz-root-ca-2048.crt self._ssl = SSL_CONTEXT_LOCAL_API + + # Disable strict validation introduced in Python 3.13, which doesn't + # work with Overkiz self-signed gateway certificates + self._ssl.verify_flags &= ~ssl.VERIFY_X509_STRICT else: self.api_type = APIType.CLOUD