Skip to content

Commit

Permalink
Drop deprecated TLS modes
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 30, 2021
1 parent d0f42b4 commit 7288f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiodocker/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _docker_machine_ssl_context() -> ssl.SSLContext:
"""
Create a SSLContext object using DOCKER_* env vars.
"""
context = ssl.SSLContext(ssl.PROTOCOL_TLS)
context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH)
context.set_ciphers(ssl._RESTRICTED_SERVER_CIPHERS) # type: ignore
certs_path = os.environ.get("DOCKER_CERT_PATH", None)
if certs_path is None:
Expand Down

0 comments on commit 7288f11

Please sign in to comment.