From bec267bfe483ac6359aa6777a233f3f57563ea13 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 10 Jun 2018 16:43:23 -0500 Subject: [PATCH] Update ssl Allow to disable verification for self signed cert. --- resources/lib/userclient.py | 7 +------ resources/settings.xml | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/resources/lib/userclient.py b/resources/lib/userclient.py index 039a45f5..c5221f36 100644 --- a/resources/lib/userclient.py +++ b/resources/lib/userclient.py @@ -70,7 +70,6 @@ class UserClient(threading.Thread): return True except Exception as error: # Server connection failed - log.error(error) return False @classmethod @@ -80,11 +79,7 @@ class UserClient(threading.Thread): True: Verify ssl False: Don't verify connection """ - certificate = settings('sslcert') - if certificate != "None": - return certificate - - return True if settings('sslverify') == "true" else False + return settings('sslverify') == "true" def get_access(self): diff --git a/resources/settings.xml b/resources/settings.xml index 9777784d..833503c0 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -11,8 +11,8 @@ - - + +