aio-libs / aio-libs/aiohttp

Can't specify both fingerprint and SSLContext for client request

Đang mở
#3,679 7 bình luận 0 reaction 2 người được giao Được @webknjaz nhận Xem trên GitHub
bug client question
Ngôn ngữ chính
Python
Star
16.5k
Fork
2.4k
Merge trung bình
17 giờ 22 phút
Pull request đã merge (30 ngày)
212

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.