From 426638b0a9a82e98af5dc212da86f13391d1127f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 13 Feb 2019 16:48:12 +0100 Subject: Thrift: Verify SSL cert --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3008c39..d685b7c 100755 --- a/main.py +++ b/main.py @@ -127,7 +127,8 @@ def thrift(name, ip, port, server, SSL=False): ssl_factory = None if SSL == 'true': # ssl_factory = ssl.create_default_context() - ssl_factory = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) + ssl_factory = ssl.create_default_context(ssl.Purpose.SERVER_AUTH) + ssl_factory.load_default_certs() organisations = [] # Different clients for SAT / Master is needed. -- cgit v1.2.3-55-g7522