1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-12 04:58:34 +03:00

removed support for TLS1.0 and TLS1.1

This commit is contained in:
Adolfo Gómez García 2023-03-31 16:31:02 +02:00
parent d43167707c
commit 8fc9495d5e
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -184,6 +184,9 @@ class RestApi:
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
# Disable SSLv2, SSLv3, TLSv1, TLSv1.1
ctx.minimum_version = ssl.TLSVersion.TLSv1_2
# If we have the certificates file, we use it
if tools.getCaCertsFile() is not None:
ctx.load_verify_locations(tools.getCaCertsFile())