diff options
| -rw-r--r-- | test/test_tls.py | 1 | ||||
| -rw-r--r-- | test/test_tls_sni.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/test_tls.py b/test/test_tls.py index 09921773..ffbcee40 100644 --- a/test/test_tls.py +++ b/test/test_tls.py @@ -49,6 +49,7 @@ def context_cert_req(cert='root'): context = ssl.create_default_context() context.check_hostname = False context.verify_mode = ssl.CERT_REQUIRED + context.verify_flags &= ~ssl.VERIFY_X509_STRICT context.load_verify_locations(f'{option.temp_dir}/{cert}.crt') return context diff --git a/test/test_tls_sni.py b/test/test_tls_sni.py index 61d72125..b2fc05c0 100644 --- a/test/test_tls_sni.py +++ b/test/test_tls_sni.py @@ -99,6 +99,7 @@ def config_bundles(bundles): context = ssl.create_default_context() context.check_hostname = False context.verify_mode = ssl.CERT_REQUIRED + context.verify_flags &= ~ssl.VERIFY_X509_STRICT context.load_verify_locations(f'{option.temp_dir}/root.crt') return context |
