Open vasylborovets1 opened 1 year ago
No idea, but the method comes from asyncio: https://docs.python.org/3/library/asyncio-protocol.html#asyncio.BaseTransport.get_extra_info
If you have time to look into it and figure it out, then please open a PR.
Describe the bug
Why
request.transport.get_extra_info("peercert")
return None if the connection is secured and the client has his own certificate Or how to get information about client certificate in "hello" function.To Reproduce
Server example:
Client example: `
Expected behavior
I expect to get client certificate by
request.transport.get_extra_info("peercert")
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
Ubuntu 20.04
Related component
Server, Client
Additional context
No response
Code of Conduct