Skip to content

Commit 4291b16

Browse files
committed
Add context.minimum_version
1 parent 4774497 commit 4291b16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/suite/utils/ssl_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def get_certificate(ip_address, host, port, timeout=10) -> str:
1919
:return: str
2020
"""
2121
context = ssl.create_default_context()
22+
context.minimum_version = ssl.TLSVersion.TLSv1_2
2223
context.check_hostname = False
2324
context.verify_mode = ssl.CERT_NONE
2425
ip_address = ip_address.strip("[]")

0 commit comments

Comments
 (0)