From 4c4820f1661f824188390c791e63f8c620038a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 4 Apr 2016 19:30:23 +0200 Subject: [PATCH] Chaged a bit the default ssl behaviour --- server/src/uds/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/src/uds/__init__.py b/server/src/uds/__init__.py index c79c49d90..a6042c3c5 100644 --- a/server/src/uds/__init__.py +++ b/server/src/uds/__init__.py @@ -52,12 +52,10 @@ __updated__ = '2016-04-04' # Default ssl context is unverified, as MOST servers that we will connect will be with self signed certificates... try: _create_unverified_https_context = ssl._create_unverified_context + ssl._create_default_https_context = _create_unverified_https_context except AttributeError: # Legacy Python that doesn't verify HTTPS certificates by default pass -else: - # Handle target environment that doesn't support HTTPS verification - ssl._create_default_https_context = _create_unverified_https_context