Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpx.ReadError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required for version 0.28.0 #3441

Closed
Rai220 opened this issue Dec 3, 2024 · 4 comments

Comments

@Rai220
Copy link

Rai220 commented Dec 3, 2024

I am using 3 parameters to make request:
cert=(cert.crt, crt.key)
verify=False

In version 0.27.2 everything is OK.

@tomchristie
Copy link
Member

Interesting thanks. Does the above PR look correct to you?

@Rai220
Copy link
Author

Rai220 commented Dec 4, 2024

No, nothing changes.

@hbldh
Copy link

hbldh commented 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 verify keyword, as well as a client cert:

import httpx

certs = ...        # Two pem files to be read from disk
server_cert = ...  # Another pem file to be read from disk
client = 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?

@hbldh
Copy link

hbldh commented Dec 9, 2024

My issue has been resolved with 0.28.1. Thank you very much for the rapid response on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants