Repository navigation
Httpx 0.28.1 ignores the cert parameter when verify is string.
#3454
Unanswered
gtsystem
asked this question in
Potential Issue
Replies: 1 comment 1 reply
|
Confirmed. The early returns for Measured on httpx 0.28.1: monkeypatching The gap is in Workaround: build the context yourself and load the cert chain before passing it to httpx: ctx = ssl.create_default_context(cafile="path/to/ca.pem")
ctx.load_cert_chain("path/to/cert.pem", "path/to/key.pem")
r = httpx.get("https://example.org", verify=ctx) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
until httpx 0.27.1 I was able to combine
verifyandcertparameters as follow:But now the behavior change as the certicate chain is not updated.
This is visible from the code https://github.com/encode/httpx/blob/0.28.1/httpx/_config.py#L54
I understand that setting
verifyto string is already deprecated and I may just going to fix the code from my side, but I have the feeling that this is a bug, as this is the only combination usingreturn ...instead ofctx = ....Related issue gtsystem/lightkube#78
All reactions