From 0eb6a843b24e7b35f8a5ed89c621b6d8d3c59e79 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Fri, 20 Sep 2024 16:02:23 -0400 Subject: [PATCH] SESSION_SSL_MINIMUM_TLS Signed-off-by: Neil Johnson --- tnz/tnz.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tnz/tnz.py b/tnz/tnz.py index c9ec756..e33bb3c 100644 --- a/tnz/tnz.py +++ b/tnz/tnz.py @@ -3747,6 +3747,10 @@ def __create_context(self, verifycert=None): else: context.verify_mode = ssl.CERT_NONE + minimum_version = getenv("SESSION_SSL_MINIMUM_TLS") + if minimum_version == "1.1": + context.minimum_version = ssl.TLSVersion.TLSv1_1 + return context def __erase(self, saddr, eaddr):