Skip to content

Commit

Permalink
Update ssl context construction for py3.12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Sep 17, 2023
1 parent d2c0a18 commit 341cc2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elkm1_lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def ssl_context_for_scheme(scheme: str) -> ssl.SSLContext:
ssl_context.minimum_version = tls
ssl_context.maximum_version = tls

ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
ssl_context.set_ciphers("DEFAULT:@SECLEVEL=0")

Expand Down

0 comments on commit 341cc2b

Please sign in to comment.