aio-libs / aio-libs/aiohttp

Can't specify both fingerprint and SSLContext for client request

オープン
#3,679 コメント 7 件 リアクション 0 件 担当者 2 名 @webknjaz が担当を希望しています GitHub で見る
bug client question
主要言語
Python
スター
16.5k
フォーク
2.4k
平均マージ
17時間 22分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。