Stop using the deprecated ssl.PROTOCOL_TLS

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-12-02 20:17:07 +00:00 committed by Megan Wilhite
parent 0a04e2ad02
commit 36a4c99a24

View file

@ -537,7 +537,7 @@ def ssl_webserver(integration_files_dir, this_txt_file):
"""
spins up an https webserver.
"""
context = ssl.SSLContext(ssl.PROTOCOL_TLS)
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.load_cert_chain(
str(integration_files_dir / "https" / "cert.pem"),
str(integration_files_dir / "https" / "key.pem"),