aiortc / aioquic

QUIC and HTTP/3 implementation in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to retrieve server TLS certificate?

byron-li opened this issue · comments

Hi,
I'm interested in retrieving the TLS certificate from the QUIC server side.
Are there any ways to achieve this? similar to the result of the getpeercert() method in the SSLSocket class.

Currently we don't expose an API for this, could you give me an idea of the usecase?

It is useful for downloading ceritificates via QUIC. Recently, curl got a curl -w "%{certs}" option, see: https://daniel.haxx.se/blog/2022/12/28/curl-w-certs/.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.