Skip to content

Commit

Permalink
Add possible SSL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Dec 22, 2024
1 parent 62d4e1a commit 2d379ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyoverkiz/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2d379ac

Please sign in to comment.