mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
satisfy security by ensuring ssl ctx only uses TLS 1.2+
This commit is contained in:
@@ -9599,6 +9599,7 @@ def inspect_untrusted_cert(url):
|
||||
port = parsed.port or 443
|
||||
# Create an unverified context purely for diagnostic extraction
|
||||
ctx = ssl.create_default_context()
|
||||
ctx.minimum_version = ssl.TLSVersion.TLSv1_2
|
||||
ctx.check_hostname = False
|
||||
ctx.verify_mode = ssl.CERT_NONE
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user