You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
httpx.ReadError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required for version 0.28.0 #3441
I experience this as well after upgrading to 0.28.0. But I had a certificate sent in as a string path for the verify keyword, as well as a client cert:
importhttpxcerts= ... # Two pem files to be read from diskserver_cert= ... # Another pem file to be read from diskclient=httpx.Client(cert=certs, verify=str(server_cert))
client.post("/myendpoint", json={})
This gives the error reported above.
When I install the certificate in my Certificate Store (I am using Windows) and remove the verify=str(server_cert) I get this error instead:
httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
Has something changed in how certificates are loaded?
Activity
lovelydinosaur commentedon Dec 3, 2024
Interesting thanks. Does the above PR look correct to you?
Rai220 commentedon Dec 4, 2024
No, nothing changes.
hbldh commentedon Dec 4, 2024
I experience this as well after upgrading to 0.28.0. But I had a certificate sent in as a string path for the
verifykeyword, as well as a client cert:This gives the error reported above.
When I install the certificate in my Certificate Store (I am using Windows) and remove the
verify=str(server_cert)I get this error instead:Has something changed in how certificates are loaded?
hbldh commentedon Dec 9, 2024
My issue has been resolved with 0.28.1. Thank you very much for the rapid response on this!