summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmain.py3
1 files changed, 2 insertions, 1 deletions
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.