Skip to content

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

Closed

Description

@Rai220

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

In version 0.27.2 everything is OK.

Activity

  1. lovelydinosaur commented on Dec 3, 2024

    @lovelydinosaur
    Member

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

  2. Rai220 commented on Dec 4, 2024

    @Rai220
    Author

    No, nothing changes.

  3. hbldh commented on Dec 4, 2024

    @hbldh

    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?

  4. hbldh commented on Dec 9, 2024

    @hbldh

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions