lexiforest / curl_cffi

Python binding for curl-impersonate fork via cffi. A http client that can impersonate browser tls/ja3/http2 fingerprints.
https://curl-cffi.readthedocs.io/
MIT License
2.52k stars 266 forks source link

[BUG] KEY_USAGE_BIT_INCORRECT CHECK PLS PLS #325

Closed viskok-yuri closed 5 months ago

viskok-yuri commented 5 months ago

https://github.com/yifeikong/curl_cffi/issues/323

Look, we need to solve this problem, I'm willing to pay 100-200$. Give me your contacts and we'll talk!

here's the solution on httpx, but I really want it to work in your library! It's all about the certificate, we need openssl, certifi.

import ssl import httpx

ssl_context = ssl.create_default_context() ssl_context.set_ciphers(':HIGH:!DH:!aNULL') ssl_context.check_hostname = False ssl_context.verify_mode = ssl.CERT_NONE

LOCK = asyncio.Lock()

transport = httpx.AsyncHTTPTransport(retries=3, verify=ssl_context,) async with httpx.AsyncClient( headers=headers, transport=transport, timeout=300.0, follow_redirects=True ) as session:

perklet commented 5 months ago

Let's continue the discussion in the original issue.