Skip to content

Capturing Server TLS Certificates #2089

Answered by tomchristie
aaronst asked this question in Q&A
Discussion options

You must be logged in to vote

Great question yup. We need some docs around this.

Take a look at response.extensions['network_stream']. This exposes a get_extra_info(), which includes SSL info in some contexts.

The low-level httpcore package has some docs about this https://www.encode.io/httpcore/extensions/#network_stream which are also valid to httpx since the extensions are passed through.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aaronst
Comment options

Answer selected by aaronst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants