Skip to content

Commit

Permalink
Tune TLS ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 30, 2021
1 parent 22708ea commit d0f42b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def test_ssl_context(monkeypatch):
await docker.close()
with pytest.raises(TypeError):
docker = Docker(ssl_context="bad ssl context")
ssl_ctx = ssl.SSLContext(ssl.PROTOCOL_TLS)
ssl_ctx = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH)
ssl_ctx.set_ciphers(ssl._RESTRICTED_SERVER_CIPHERS)
ssl_ctx.load_verify_locations(cafile=str(cert_dir / "ca.pem"))
ssl_ctx.load_cert_chain(
Expand Down

0 comments on commit d0f42b4

Please sign in to comment.