Skip to content

Breaks Tornado's (Async)HTTPClient #204

@thijsvandien

Description

@thijsvandien
import truststore  # 0.10.4
truststore.inject_into_ssl()

from tornado.httpclient import HTTPClient, HTTPRequest  # 6.5.3

request = HTTPRequest('https://github.com')
HTTPClient().fetch(request)

On macOS 15.7.3 (M1 Pro), using either Python 3.13.11 or 3.14.2:

  File ".../site-packages/truststore/_macos.py", line 273, in _handle_osstatus
    raise ssl.SSLError(message)
ssl.SSLError: (b'One or more parameters passed to a function were not valid.',)

On Windows 11 24H2 (ARM), using Python 3.14.2 (AMD64):

  File "...\site-packages\truststore\_windows.py", line 333, in _verify_peercerts_impl
    raise ssl.SSLCertVerificationError("Peer sent no certificates to verify")
ssl.SSLCertVerificationError: ('Peer sent no certificates to verify',)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions