Skip to content

Commit

Permalink
Add context.minimum_version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Nov 7, 2022
1 parent 4774497 commit 4291b16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/suite/utils/ssl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def get_certificate(ip_address, host, port, timeout=10) -> str:
:return: str
"""
context = ssl.create_default_context()
context.minimum_version = ssl.TLSVersion.TLSv1_2
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
ip_address = ip_address.strip("[]")
Expand Down

0 comments on commit 4291b16

Please sign in to comment.