aio-libs / aio-libs/aiohttp

Can't specify both fingerprint and SSLContext for client request

未关闭
#3,679 7 条评论 0 个 reaction 已指派 2 人 已被 @webknjaz 认领 在 GitHub 查看
bug client question
主要语言
Python
星标
16.5k
派生
2.4k
平均合并
17 小时 22 分钟
30 天内合并 PR
212

描述

## Long story short

It appears that 4.0 will remove all the SSL parameters from the `TCPConnector` class except for a single `ssl` parameter (#2626). This appears to be quite limiting: for example, it would no longer be possible to supply a client certificate and simultaneously pin the expected server certificate. The former requires you to pass the `SSLContext` configured with the client certificate as the `ssl` parameter, but for the latter you would have to pass a `Fingerprint`. Is there a recommendation for how this could be achieved?

## Expected behaviour

Should be possible to make a request with BOTH a client certificate and a pinned server certificate.

## Actual behaviour

It appears this will be removed with no alternative offered in 4.0.

## Steps to reproduce

N/A

## Your environment

client

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。