mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
Chaged a bit the default ssl behaviour
This commit is contained in:
parent
2749bfc40c
commit
4c4820f166
@ -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...
|
# Default ssl context is unverified, as MOST servers that we will connect will be with self signed certificates...
|
||||||
try:
|
try:
|
||||||
_create_unverified_https_context = ssl._create_unverified_context
|
_create_unverified_https_context = ssl._create_unverified_context
|
||||||
|
ssl._create_default_https_context = _create_unverified_https_context
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# Legacy Python that doesn't verify HTTPS certificates by default
|
# Legacy Python that doesn't verify HTTPS certificates by default
|
||||||
pass
|
pass
|
||||||
else:
|
|
||||||
# Handle target environment that doesn't support HTTPS verification
|
|
||||||
ssl._create_default_https_context = _create_unverified_https_context
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user