Skip to content

Client ignores SSLContext's keylog_filename #1707

@pbeart

Description

@pbeart

This program does not create an SSL log file at the specified path:

import ssl
from websockets.asyncio.client import connect

async def hello():
    ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
    ssl_context.keylog_filename = "<some path>"
    ssl_context.load_default_certs()
    
    async with connect(
        "wss://somesite.com/somepage",
        ssl=ssl_context
    ) as websocket:
        ...
                


if __name__ == "__main__":
    asyncio.run(hello())```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions