镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] - httpx==0.28.1 #3475

Open

Description

@neonima1995

[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1000)
p.s. I downgrade the version to 0.27.2

Activity

  1. changed the title [-]httpx==0.28.1[/-] [+][SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] - httpx==0.28.1[/+] on Jan 15, 2025
  2. petsneakers commented on Feb 13, 2025

    @petsneakers

    Also impacted by this, calling

    httpx.AsyncClient(verify=False, http2=True)
    
  3. Cycloctane commented on Feb 16, 2025

    @Cycloctane

    There is a breaking change in ssl config. httpx 0.27.2 uses a custom cipher suites config from urllib3 1.x, while httpx 0.28.0 is using default ciphers from ssl.create_default_context(). Some cipher suites are not accepted by default anymore.

  4. petsneakers commented on Feb 16, 2025

    @petsneakers

    Thanks, that did it:

    ssl_context = ssl.create_default_context()
    ssl_context.check_hostname = False
    ssl_context.verify_mode = ssl.CERT_NONE
    ssl_context.set_ciphers('DEFAULT@SECLEVEL=2')
    async with httpx.AsyncClient(verify=ssl_context, http2=True) as client:
    
  5. bellini666 commented on May 5, 2025

    @bellini666

    Same issue even without http2

    @petsneakers workaround works, but verify=False does not

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