Skip to content

Commit d4bfa4f

Browse files
authored
Add possible SSL fix (#1478)
1 parent 62d4e1a commit d4bfa4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyoverkiz/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ def __init__(
171171
# To avoid security issues while authentication to local API, we add the following authority to
172172
# our HTTPS client trust store: https://ca.overkiz.com/overkiz-root-ca-2048.crt
173173
self._ssl = SSL_CONTEXT_LOCAL_API
174+
175+
# Disable strict validation introduced in Python 3.13, which doesn't
176+
# work with Overkiz self-signed gateway certificates
177+
self._ssl.verify_flags &= ~ssl.VERIFY_X509_STRICT
174178
else:
175179
self.api_type = APIType.CLOUD
176180

0 commit comments

Comments
 (0)