From 0a742ab2de30b786a7909238c1a34703fd85c433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Fri, 4 Dec 2026 14:32:40 +0100 Subject: [PATCH 1/2] feat: add an option to trust extra CA certificates Adds `ca` to the Node.js `ImpitOptions` and accepts a CA bundle path in Python's `verify`, so impit can trust e.g. the CA of a TLS-intercepting proxy without turning off certificate verification. Closes #649 --- impit-node/index.d.ts | 9 ++++++ impit-node/src/impit_builder.rs | 30 ++++++++++++++++++- impit-node/test/basics.test.ts | 20 +++++++++++++ impit-node/test/fixtures/ca.pem | 11 +++++++ impit-node/test/fixtures/localhost-key.pem | 5 ++++ impit-node/test/fixtures/localhost.pem | 12 ++++++++ impit-python/python/impit/impit.pyi | 17 ++++++++--- impit-python/src/async_client.rs | 9 ++++-- impit-python/src/client.rs | 9 ++++-- impit-python/test/basic_client_test.py | 10 ++++++- impit-python/test/fixtures/ca.pem | 11 +++++++ impit-python/test/fixtures/localhost-key.pem | 5 ++++ impit-python/test/fixtures/localhost.pem | 12 ++++++++ impit-python/test/servers.py | 31 ++++++++++++++++++++ impit/src/errors.rs | 2 ++ impit/src/fingerprint/database.rs | 2 +- impit/src/impit.rs | 27 ++++++++++++++++- impit/src/tls/mod.rs | 30 +++++++++++++++++-- 18 files changed, 235 insertions(+), 17 deletions(-) create mode 100644 impit-node/test/fixtures/ca.pem create mode 100644 impit-node/test/fixtures/localhost-key.pem create mode 100644 impit-node/test/fixtures/localhost.pem create mode 100644 impit-python/test/fixtures/ca.pem create mode 100644 impit-python/test/fixtures/localhost-key.pem create mode 100644 impit-python/test/fixtures/localhost.pem diff --git a/impit-node/index.d.ts b/impit-node/index.d.ts index a8ddfc34..8ee19f52 100644 --- a/impit-node/index.d.ts +++ b/impit-node/index.d.ts @@ -310,6 +310,15 @@ export interface ImpitOptions { * @default `false` */ ignoreTlsErrors?: boolean + /** + * Additional CA certificates to trust, in PEM format. + * + * Unlike the `ca` option of Node's `tls` module, these are trusted in addition to the default root certificates. + * This is useful e.g. with TLS-intercepting proxies that sign the server certificates with their own CA. + * + * @default `undefined` + */ + ca?: string | Buffer | Array /** * Whether to fallback to a vanilla user-agent if the emulated browser * is not supported by the target website. diff --git a/impit-node/src/impit_builder.rs b/impit-node/src/impit_builder.rs index a1e8df69..7b3a35ad 100644 --- a/impit-node/src/impit_builder.rs +++ b/impit-node/src/impit_builder.rs @@ -5,11 +5,13 @@ use impit::{ impit::{ImpitBuilder, RedirectBehavior}, }; -use napi::bindgen_prelude::{Either, Null, Object}; +use napi::bindgen_prelude::{Buffer, Either, Either3, Null, Object}; use napi_derive::napi; use crate::cookies::NodeCookieJar; +type CaCertificates = Either3>>; + /// Supported browsers for emulation. /// /// See {@link ImpitOptions.browser} for more details and usage. @@ -62,6 +64,14 @@ pub struct ImpitOptions<'a> { /// /// @default `false` pub ignore_tls_errors: Option, + /// Additional CA certificates to trust, in PEM format. + /// + /// Unlike the `ca` option of Node's `tls` module, these are trusted in addition to the default root certificates. + /// This is useful e.g. with TLS-intercepting proxies that sign the server certificates with their own CA. + /// + /// @default `undefined` + #[napi(ts_type = "string | Buffer | Array")] + pub ca: Option, /// Whether to fallback to a vanilla user-agent if the emulated browser /// is not supported by the target website. /// @@ -169,6 +179,24 @@ impl ImpitOptions<'_> { if let Some(ignore_tls_errors) = self.ignore_tls_errors { config = config.with_ignore_tls_errors(ignore_tls_errors); } + if let Some(ca) = self.ca { + let certificates = match ca { + Either3::A(pem) => vec![Either::A(pem)], + Either3::B(pem) => vec![Either::B(pem)], + Either3::C(pems) => pems, + }; + let pem = certificates + .iter() + .map(|pem| match pem { + Either::A(pem) => pem.as_bytes(), + Either::B(pem) => pem, + }) + .collect::>() + .join(&b'\n'); + config = config + .with_ca_certificates(&pem) + .map_err(|e| napi::Error::from_reason(e.to_string()))?; + } if let Some(vanilla_fallback) = self.vanilla_fallback { config = config.with_fallback_to_vanilla(vanilla_fallback); } diff --git a/impit-node/test/basics.test.ts b/impit-node/test/basics.test.ts index f7278181..edfa4294 100644 --- a/impit-node/test/basics.test.ts +++ b/impit-node/test/basics.test.ts @@ -1,4 +1,6 @@ import http from 'http'; +import https from 'https'; +import { readFileSync } from 'fs'; import { Readable } from 'node:stream'; import { test, describe, expect, beforeAll, afterAll } from 'vitest'; @@ -392,6 +394,24 @@ describe.each([ expect(json.ip).toBe(remoteAddress); }); + + test('ca trusts an extra CA certificate', async () => { + const fixture = (name: string) => readFileSync(new URL(`./fixtures/${name}`, import.meta.url)); + const server = https.createServer({ + key: fixture('localhost-key.pem'), + cert: fixture('localhost.pem'), + }, (req, res) => res.end('ok')).listen(0); + const url = `https://localhost:${(server.address() as AddressInfo).port}/`; + + try { + await expect(impit.fetch(url)).rejects.toThrow(); + + const response = await new Impit({ browser, ca: fixture('ca.pem') }).fetch(url); + expect(await response.text()).toBe('ok'); + } finally { + server.close(); + } + }); }); describe('Parameter types', () => { diff --git a/impit-node/test/fixtures/ca.pem b/impit-node/test/fixtures/ca.pem new file mode 100644 index 00000000..d3a104da --- /dev/null +++ b/impit-node/test/fixtures/ca.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBlzCCAT2gAwIBAgIUW4VsFwWWoaLwV/eI3F+jLL4M/AMwCgYIKoZIzj0EAwIw +GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNTVaGA8yMTI2 +MTExMDEzMjE1NVowGDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTBZMBMGByqGSM49 +AgEGCCqGSM49AwEHA0IABGwzmag2oo2QXwuI0rR/T2JuB8J9bfm64FSCoqOJ/b1H +VvXRgUxki+HPyGjTZmmdOb9K7dEL4o7/LQbrCUh7ggejYzBhMB0GA1UdDgQWBBS/ +XI020VYF4YEA/6t3mhy2Rcnp8jAfBgNVHSMEGDAWgBS/XI020VYF4YEA/6t3mhy2 +Rcnp8jAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwICBDAKBggqhkjOPQQD +AgNIADBFAiAnqdT01VgmpQgkoM0lZphxaLNOAMezwO2+mLgGpskiawIhALRVS686 +ALAQZEeIkSSt7TDDY6Olxno8LvoAwtcmzkCD +-----END CERTIFICATE----- diff --git a/impit-node/test/fixtures/localhost-key.pem b/impit-node/test/fixtures/localhost-key.pem new file mode 100644 index 00000000..ecbe0356 --- /dev/null +++ b/impit-node/test/fixtures/localhost-key.pem @@ -0,0 +1,5 @@ +-----BEGIN PRIVATE KEY----- +MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgq7iuiyCkj01DY/iw +ms9zKQkYTIgMJg0VeBpuGXzySHWhRANCAASbaPjYZhOBldFuieeg0gLTP7w+74jc +SIM2LNy2UmmcJxofhpUB/HboedpcQWiDJZ/HgIqxKEC3OR6Clks51ik1 +-----END PRIVATE KEY----- diff --git a/impit-node/test/fixtures/localhost.pem b/impit-node/test/fixtures/localhost.pem new file mode 100644 index 00000000..f03cd2b9 --- /dev/null +++ b/impit-node/test/fixtures/localhost.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1jCCAXugAwIBAgIUIP/MfRu2mVwdN54FX4yZeFUWqjUwCgYIKoZIzj0EAwIw +GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNThaGA8yMTI2 +MTExMDEzMjE1OFowFDESMBAGA1UEAwwJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYI +KoZIzj0DAQcDQgAEm2j42GYTgZXRbonnoNIC0z+8Pu+I3EiDNizctlJpnCcaH4aV +Afx26HnaXEFogyWfx4CKsShAtzkegpZLOdYpNaOBpDCBoTAMBgNVHRMBAf8EAjAA +MA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAsBgNVHREEJTAj +gglsb2NhbGhvc3SHBH8AAAGHEAAAAAAAAAAAAAAAAAAAAAEwHQYDVR0OBBYEFA2W +v+gaa+JGUdhCXMCN1O5Lx1uHMB8GA1UdIwQYMBaAFL9cjTbRVgXhgQD/q3eaHLZF +yenyMAoGCCqGSM49BAMCA0kAMEYCIQDt+4Hqbj80GROcT1FCA1nDEfcDQcdzU5eP +GJp6yYPuaQIhAJjxQD+7FB5k8oGvIaYGMbU6cYtM6sLDFe/UYrq/X6R5 +-----END CERTIFICATE----- diff --git a/impit-python/python/impit/impit.pyi b/impit-python/python/impit/impit.pyi index c15a043b..cca18bfd 100644 --- a/impit-python/python/impit/impit.pyi +++ b/impit-python/python/impit/impit.pyi @@ -1,4 +1,5 @@ from __future__ import annotations +import os from http.cookiejar import CookieJar from .cookies import Cookies from .headers import Headers @@ -431,6 +432,9 @@ class Client: This can be used to ignore TLS errors (e.g., self-signed certificates). + Can also be a path to a PEM file with CA certificates to trust in addition to the default ones + (e.g., the CA of a TLS-intercepting proxy). + True by default. default_encoding: Default encoding for response.text field (e.g., "utf-8", "cp1252"). @@ -486,7 +490,7 @@ class Client: http3: bool | None = None, proxy: str | None = None, timeout: float | None = ..., - verify: bool | None = None, + verify: bool | str | os.PathLike[str] | None = None, default_encoding: str | None = None, follow_redirects: bool | None = None, max_redirects: int | None = None, @@ -502,7 +506,8 @@ class Client: http3: Enable HTTP/3 support proxy: Proxy URL to use timeout: Default request timeout in seconds. Pass ``None`` to disable the timeout entirely. - verify: Verify SSL certificates (set to False to ignore TLS errors) + verify: Verify SSL certificates (set to False to ignore TLS errors, or to a path to a PEM CA bundle + to trust in addition to the default roots) default_encoding: Default encoding for response.text field (e.g., "utf-8", "cp1252"). Overrides `content-type` header and bytestream prescan. follow_redirects: Whether to follow redirects (default: False) @@ -813,6 +818,9 @@ class AsyncClient: This can be used to ignore TLS errors (e.g., self-signed certificates). + Can also be a path to a PEM file with CA certificates to trust in addition to the default ones + (e.g., the CA of a TLS-intercepting proxy). + True by default. default_encoding: Default encoding for response.text field (e.g., "utf-8", "cp1252"). @@ -867,7 +875,7 @@ class AsyncClient: http3: bool | None = None, proxy: str | None = None, timeout: float | None = ..., - verify: bool | None = None, + verify: bool | str | os.PathLike[str] | None = None, default_encoding: str | None = None, follow_redirects: bool | None = None, max_redirects: int | None = None, @@ -883,7 +891,8 @@ class AsyncClient: http3: Enable HTTP/3 support proxy: Proxy URL to use timeout: Default request timeout in seconds. Pass ``None`` to disable the timeout entirely. - verify: Verify SSL certificates (set to False to ignore TLS errors) + verify: Verify SSL certificates (set to False to ignore TLS errors, or to a path to a PEM CA bundle + to trust in addition to the default roots) default_encoding: Default encoding for response.text field (e.g., "utf-8", "cp1252"). Overrides `content-type` header and bytestream prescan. follow_redirects: Whether to follow redirects (default: False) diff --git a/impit-python/src/async_client.rs b/impit-python/src/async_client.rs index 96fdfa60..498fa166 100644 --- a/impit-python/src/async_client.rs +++ b/impit-python/src/async_client.rs @@ -1,6 +1,6 @@ use std::{collections::HashMap, sync::Arc, time::Duration}; -use either::{Either, Right}; +use either::{Either, Left, Right}; use impit::{ errors::ImpitError, impit::{Impit, ImpitBuilder}, @@ -52,7 +52,7 @@ impl AsyncClient { http3: Option, proxy: Option, timeout: Option>, - verify: Option, + verify: Option>, default_encoding: Option, follow_redirects: Option, max_redirects: Option, @@ -87,7 +87,10 @@ impl AsyncClient { }; let builder = match verify { - Some(false) => builder.with_ignore_tls_errors(true), + Some(Left(false)) => builder.with_ignore_tls_errors(true), + Some(Right(ca_bundle)) => builder + .with_ca_certificates(&std::fs::read(ca_bundle)?) + .map_err(ImpitPyError)?, _ => builder, }; diff --git a/impit-python/src/client.rs b/impit-python/src/client.rs index 364564c9..bdce290e 100644 --- a/impit-python/src/client.rs +++ b/impit-python/src/client.rs @@ -1,6 +1,6 @@ use std::{collections::HashMap, time::Duration}; -use either::{Either, Right}; +use either::{Either, Left, Right}; use impit::{ errors::ImpitError, impit::{Impit, ImpitBuilder}, @@ -47,7 +47,7 @@ impl Client { http3: Option, proxy: Option, timeout: Option>, - verify: Option, + verify: Option>, default_encoding: Option, follow_redirects: Option, max_redirects: Option, @@ -84,7 +84,10 @@ impl Client { }; let builder = match verify { - Some(false) => builder.with_ignore_tls_errors(true), + Some(Left(false)) => builder.with_ignore_tls_errors(true), + Some(Right(ca_bundle)) => builder + .with_ca_certificates(&std::fs::read(ca_bundle)?) + .map_err(ImpitPyError)?, _ => builder, }; diff --git a/impit-python/test/basic_client_test.py b/impit-python/test/basic_client_test.py index 3f9489b4..a28c1e14 100644 --- a/impit-python/test/basic_client_test.py +++ b/impit-python/test/basic_client_test.py @@ -26,7 +26,7 @@ ) from .httpbin import get_httpbin_url -from .servers import echoing_server, set_cookie_server +from .servers import FIXTURES, echoing_server, set_cookie_server, tls_server from .setup_proxy import start_proxy_server @@ -657,6 +657,14 @@ def test_local_address(self, browser: Browser, addresses: tuple[str, str]) -> No assert response.status_code == 200 thread.join() + def test_verify_ca_bundle(self, browser: Browser) -> None: + with tls_server() as port: + with pytest.raises(HTTPError): + Client(browser=browser).get(f'https://127.0.0.1:{port}/') + + response = Client(browser=browser, verify=FIXTURES / 'ca.pem').get(f'https://127.0.0.1:{port}/') + assert response.text == 'ok' + @pytest.mark.parametrize( ('browser'), diff --git a/impit-python/test/fixtures/ca.pem b/impit-python/test/fixtures/ca.pem new file mode 100644 index 00000000..d3a104da --- /dev/null +++ b/impit-python/test/fixtures/ca.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBlzCCAT2gAwIBAgIUW4VsFwWWoaLwV/eI3F+jLL4M/AMwCgYIKoZIzj0EAwIw +GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNTVaGA8yMTI2 +MTExMDEzMjE1NVowGDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTBZMBMGByqGSM49 +AgEGCCqGSM49AwEHA0IABGwzmag2oo2QXwuI0rR/T2JuB8J9bfm64FSCoqOJ/b1H +VvXRgUxki+HPyGjTZmmdOb9K7dEL4o7/LQbrCUh7ggejYzBhMB0GA1UdDgQWBBS/ +XI020VYF4YEA/6t3mhy2Rcnp8jAfBgNVHSMEGDAWgBS/XI020VYF4YEA/6t3mhy2 +Rcnp8jAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwICBDAKBggqhkjOPQQD +AgNIADBFAiAnqdT01VgmpQgkoM0lZphxaLNOAMezwO2+mLgGpskiawIhALRVS686 +ALAQZEeIkSSt7TDDY6Olxno8LvoAwtcmzkCD +-----END CERTIFICATE----- diff --git a/impit-python/test/fixtures/localhost-key.pem b/impit-python/test/fixtures/localhost-key.pem new file mode 100644 index 00000000..ecbe0356 --- /dev/null +++ b/impit-python/test/fixtures/localhost-key.pem @@ -0,0 +1,5 @@ +-----BEGIN PRIVATE KEY----- +MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgq7iuiyCkj01DY/iw +ms9zKQkYTIgMJg0VeBpuGXzySHWhRANCAASbaPjYZhOBldFuieeg0gLTP7w+74jc +SIM2LNy2UmmcJxofhpUB/HboedpcQWiDJZ/HgIqxKEC3OR6Clks51ik1 +-----END PRIVATE KEY----- diff --git a/impit-python/test/fixtures/localhost.pem b/impit-python/test/fixtures/localhost.pem new file mode 100644 index 00000000..f03cd2b9 --- /dev/null +++ b/impit-python/test/fixtures/localhost.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1jCCAXugAwIBAgIUIP/MfRu2mVwdN54FX4yZeFUWqjUwCgYIKoZIzj0EAwIw +GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNThaGA8yMTI2 +MTExMDEzMjE1OFowFDESMBAGA1UEAwwJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYI +KoZIzj0DAQcDQgAEm2j42GYTgZXRbonnoNIC0z+8Pu+I3EiDNizctlJpnCcaH4aV +Afx26HnaXEFogyWfx4CKsShAtzkegpZLOdYpNaOBpDCBoTAMBgNVHRMBAf8EAjAA +MA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAsBgNVHREEJTAj +gglsb2NhbGhvc3SHBH8AAAGHEAAAAAAAAAAAAAAAAAAAAAEwHQYDVR0OBBYEFA2W +v+gaa+JGUdhCXMCN1O5Lx1uHMB8GA1UdIwQYMBaAFL9cjTbRVgXhgQD/q3eaHLZF +yenyMAoGCCqGSM49BAMCA0kAMEYCIQDt+4Hqbj80GROcT1FCA1nDEfcDQcdzU5eP +GJp6yYPuaQIhAJjxQD+7FB5k8oGvIaYGMbU6cYtM6sLDFe/UYrq/X6R5 +-----END CERTIFICATE----- diff --git a/impit-python/test/servers.py b/impit-python/test/servers.py index 5d6aa9e7..baa3ace3 100644 --- a/impit-python/test/servers.py +++ b/impit-python/test/servers.py @@ -6,12 +6,16 @@ import http.server import re import socket +import ssl import threading +from pathlib import Path from typing import TYPE_CHECKING if TYPE_CHECKING: from collections.abc import Iterator +FIXTURES = Path(__file__).parent / 'fixtures' + @contextlib.contextmanager def echoing_server(body_started: threading.Event | None = None) -> Iterator[int]: @@ -78,3 +82,30 @@ def log_message(self, *_: object) -> None: finally: server.shutdown() server.server_close() + + +@contextlib.contextmanager +def tls_server() -> Iterator[int]: + """Answer every request with `ok` over HTTPS with a certificate signed by `fixtures/ca.pem`, and yield the port.""" + + class Handler(http.server.BaseHTTPRequestHandler): + def do_GET(self) -> None: + self.send_response(200) + self.send_header('Content-Length', '2') + self.end_headers() + self.wfile.write(b'ok') + + def log_message(self, *_: object) -> None: + pass + + context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) + context.load_cert_chain(FIXTURES / 'localhost.pem', FIXTURES / 'localhost-key.pem') + server = http.server.ThreadingHTTPServer(('127.0.0.1', 0), Handler) + server.socket = context.wrap_socket(server.socket, server_side=True) + thread = threading.Thread(target=server.serve_forever, daemon=True) + thread.start() + try: + yield server.server_address[1] + finally: + server.shutdown() + server.server_close() diff --git a/impit/src/errors.rs b/impit/src/errors.rs index 72cdddb3..157aa1ad 100644 --- a/impit/src/errors.rs +++ b/impit/src/errors.rs @@ -95,6 +95,8 @@ pub enum ImpitError { InvalidHeaderValue(String), #[error("The internal HTTP library has thrown an error:\n{0}")] ReqwestError(String), + #[error("The CA certificate is invalid: {0}")] + InvalidCaCertificate(String), } impl From for ImpitError { diff --git a/impit/src/fingerprint/database.rs b/impit/src/fingerprint/database.rs index b19e3fb0..1c00690e 100644 --- a/impit/src/fingerprint/database.rs +++ b/impit/src/fingerprint/database.rs @@ -31,7 +31,7 @@ mod tests { builder.with_tls_fingerprint(fingerprint.tls); let server_name = rustls::pki_types::ServerName::try_from("example.com").unwrap(); let mut conn = - rustls::ClientConnection::new(Arc::new(builder.build()), server_name).unwrap(); + rustls::ClientConnection::new(Arc::new(builder.build().unwrap()), server_name).unwrap(); let mut record = Vec::new(); conn.write_tls(&mut record).unwrap(); diff --git a/impit/src/impit.rs b/impit/src/impit.rs index 2a37d479..5162af35 100644 --- a/impit/src/impit.rs +++ b/impit/src/impit.rs @@ -10,6 +10,7 @@ use reqwest::{ }, Method, Response, StatusCode, Version, }; +use rustls::pki_types::{pem::PemObject, CertificateDer}; use std::{ fmt::Debug, net::IpAddr, @@ -97,6 +98,7 @@ pub enum RedirectBehavior { pub struct ImpitBuilder { fingerprint: Option, ignore_tls_errors: bool, + ca_certificates: Vec>, vanilla_fallback: bool, proxy_url: String, request_timeout: Duration, @@ -112,6 +114,7 @@ impl Clone for ImpitBuilder Default for ImpitBuilder ImpitBuilder { self } + /// Trusts the CA certificates from a PEM bundle in addition to the default root certificates. + /// + /// This is useful e.g. with TLS-intercepting proxies that sign the server certificates with their own CA. + pub fn with_ca_certificates(mut self, pem: &[u8]) -> Result { + let ca_certificates = CertificateDer::pem_slice_iter(pem) + .collect::, _>>() + .map_err(|e| ImpitError::InvalidCaCertificate(e.to_string()))?; + + if ca_certificates.is_empty() { + return Err(ImpitError::InvalidCaCertificate( + "no PEM certificates found".to_string(), + )); + } + + self.ca_certificates = ca_certificates; + Ok(self) + } + /// If set to `true`, the client will retry the request without impersonation /// if the impersonated browser encounters an error. pub fn with_fallback_to_vanilla(mut self, vanilla_fallback: bool) -> Self { @@ -307,8 +329,11 @@ impl Impit { } tls_config_builder.with_ignore_tls_errors(config.ignore_tls_errors); + tls_config_builder.with_ca_certificates(config.ca_certificates.clone()); - let tls_config = tls_config_builder.build(); + let tls_config = tls_config_builder + .build() + .map_err(|e| ImpitError::InvalidCaCertificate(e.to_string()))?; client = client .danger_accept_invalid_certs(config.ignore_tls_errors) diff --git a/impit/src/tls/mod.rs b/impit/src/tls/mod.rs index 31e6a9a2..ce85ce4c 100644 --- a/impit/src/tls/mod.rs +++ b/impit/src/tls/mod.rs @@ -8,6 +8,7 @@ use reqwest::Version; use rustls::client::danger::NoVerifier; use rustls::client::{EchGreaseConfig, Resumption, Tls12Resumption}; use rustls::crypto::CryptoProvider; +use rustls::pki_types::CertificateDer; use rustls_platform_verifier::Verifier; static VANILLA_CRYPTO_PROVIDER: OnceLock> = OnceLock::new(); @@ -87,6 +88,7 @@ pub struct TlsConfigBuilder { tls_fingerprint: Option, max_http_version: Version, ignore_tls_errors: bool, + ca_certificates: Vec>, } impl Default for TlsConfigBuilder { @@ -95,6 +97,7 @@ impl Default for TlsConfigBuilder { tls_fingerprint: None, max_http_version: Version::HTTP_2, ignore_tls_errors: false, + ca_certificates: Vec::new(), } } } @@ -120,7 +123,15 @@ impl TlsConfigBuilder { self } - pub fn build(self) -> rustls::ClientConfig { + pub fn with_ca_certificates( + &mut self, + ca_certificates: Vec>, + ) -> &mut Self { + self.ca_certificates = ca_certificates; + self + } + + pub fn build(self) -> Result { let ignore_tls_errors = self.ignore_tls_errors; let max_http_version = self.max_http_version; @@ -225,11 +236,24 @@ impl TlsConfigBuilder { config }; + if !ignore_tls_errors && !self.ca_certificates.is_empty() { + let verifier = Verifier::new_with_extra_roots( + webpki_root_certs::TLS_SERVER_ROOT_CERTS + .iter() + .cloned() + .chain(self.ca_certificates), + config.crypto_provider().clone(), + )?; + config + .dangerous() + .set_certificate_verifier(Arc::new(verifier)); + } + if max_http_version == Version::HTTP_3 { config.alpn_protocols = vec![b"h3".to_vec()]; }; - config + Ok(config) } } @@ -246,7 +270,7 @@ mod tests { .with_ignore_tls_errors(ignore_tls_errors); let server_name = rustls::pki_types::ServerName::try_from("example.com").unwrap(); let mut conn = - rustls::ClientConnection::new(Arc::new(builder.build()), server_name).unwrap(); + rustls::ClientConnection::new(Arc::new(builder.build().unwrap()), server_name).unwrap(); let mut record = Vec::new(); conn.write_tls(&mut record).unwrap(); From ecf16e79382372a932870c5d9ad8477cdc22a354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Fri, 4 Dec 2026 15:59:10 +0100 Subject: [PATCH 2/2] test: generate the TLS test certificates at runtime Uses selfsigned and trustme instead of committed fixtures, so no private key lives in the repo and the server certificate stays within the 825-day validity limit that macOS enforces. --- impit-node/package.json | 1 + impit-node/pnpm-lock.yaml | 219 ++++++++++++++++ impit-node/test/basics.test.ts | 23 +- impit-node/test/fixtures/ca.pem | 11 - impit-node/test/fixtures/localhost-key.pem | 5 - impit-node/test/fixtures/localhost.pem | 12 - impit-python/pyproject.toml | 1 + impit-python/test/basic_client_test.py | 12 +- impit-python/test/fixtures/ca.pem | 11 - impit-python/test/fixtures/localhost-key.pem | 5 - impit-python/test/fixtures/localhost.pem | 12 - impit-python/test/servers.py | 12 +- impit-python/uv.lock | 250 ++++++++++++++++++- 13 files changed, 494 insertions(+), 80 deletions(-) delete mode 100644 impit-node/test/fixtures/ca.pem delete mode 100644 impit-node/test/fixtures/localhost-key.pem delete mode 100644 impit-node/test/fixtures/localhost.pem delete mode 100644 impit-python/test/fixtures/ca.pem delete mode 100644 impit-python/test/fixtures/localhost-key.pem delete mode 100644 impit-python/test/fixtures/localhost.pem diff --git a/impit-node/package.json b/impit-node/package.json index 27bd8324..31a48df0 100644 --- a/impit-node/package.json +++ b/impit-node/package.json @@ -29,6 +29,7 @@ "@types/node": "^26.6.11", "express": "^5.3.0", "proxy-chain": "^3.0.3", + "selfsigned": "^5.5.0", "socks-server-lib": "^0.0.3", "tough-cookie": "^6.1.0", "typedoc": "^0.28.20", diff --git a/impit-node/pnpm-lock.yaml b/impit-node/pnpm-lock.yaml index 7d8646cc..09be23fc 100644 --- a/impit-node/pnpm-lock.yaml +++ b/impit-node/pnpm-lock.yaml @@ -200,6 +200,9 @@ importers: proxy-chain: specifier: ^3.0.3 version: 3.0.3 + selfsigned: + specifier: ^5.5.0 + version: 5.5.0 socks-server-lib: specifier: ^0.0.3 version: 0.0.3 @@ -765,6 +768,10 @@ packages: resolution: {integrity: sha512-VM6AVh5aYrUZtadC/ozmyx6lr1mE5RKqBXSrF6HkTrft9wFhHKD8hcKJ9v7QeA0H0QX5Og/7L21hILAICqFLww==} engines: {node: '>= 12.22.0'} + '@noble/hashes@1.8.0': + resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} + engines: {node: ^14.21.3 || >=16} + '@octokit/auth-token@6.0.0': resolution: {integrity: sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==} engines: {node: '>= 20'} @@ -826,6 +833,53 @@ packages: '@oxc-project/types@0.160.0': resolution: {integrity: sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==} + '@peculiar/asn1-cms@2.11.1': + resolution: {integrity: sha512-Bk+oatE62dW0Tzzpfk6vdQxfGGEfvuGdWgmijnKjcv7HqZCJISs85z4zw2uDArrk+R1Oel1wts/BBl7HHrtAcA==} + engines: {node: '>=14'} + + '@peculiar/asn1-csr@2.11.1': + resolution: {integrity: sha512-KVfbXaKng8886/tOPG55t5K1XkTkGbR4amjIJzytXWobFU5nZgw/sKnSpa1hxP17nUSsrOF/7Mt9WUYeyLsi6Q==} + engines: {node: '>=14'} + + '@peculiar/asn1-ecc@2.11.1': + resolution: {integrity: sha512-7MSNji77fQa/oN3WAfwagMy8EoJFg50sW4hZ1dtr0zU1BSugit0I2DGpIdPhvkNplopQhz5bogxpn1077eaamA==} + engines: {node: '>=14'} + + '@peculiar/asn1-pfx@2.11.1': + resolution: {integrity: sha512-2SN2z8qkc2hk/GgTYA8RN54wtsCDZShg9gI2Mq1vLhdj1adcv5fhTbiEmExZUaAMqlizxiEpULQDfHM5iYtn1g==} + engines: {node: '>=14'} + + '@peculiar/asn1-pkcs8@2.11.1': + resolution: {integrity: sha512-HqsSrnpQghRp9SM9QSmR6fa4z/BNktnKq7928+oq4qF0VAnuHZ4cyePKvcxh9fP4taBCP/WHNItlVNsYaQm2qw==} + engines: {node: '>=14'} + + '@peculiar/asn1-pkcs9@2.11.1': + resolution: {integrity: sha512-OHFkTg8D2zYafILqFE4KPbqX8srpvd3diGDc2h2cduumawc765mOHGcuFMGvLWlL2bbCMWMmMSCtlXptsOuiPA==} + engines: {node: '>=14'} + + '@peculiar/asn1-rsa@2.11.1': + resolution: {integrity: sha512-6KwKGjulF489CpidZqkogNgLj6oGzgC4BL2FClM8PuJQ4t5NqT4q4a6A4vrSxBIBhMnL8hGYkLOpbVw0Vq38Tw==} + engines: {node: '>=14'} + + '@peculiar/asn1-schema@2.11.1': + resolution: {integrity: sha512-jaU9OaCcbZUdyXx9hMETZB9xoNmxTGjOGFqd3cOwKFkpKnyKd9WxF3uqj4PvX4cyOMP9bSdHg5YyML2qtx/d/g==} + engines: {node: '>=14'} + + '@peculiar/asn1-x509-attr@2.11.1': + resolution: {integrity: sha512-n7RKFrbTzt8pGBlZ90kmKEn1qsLTTyw7lrvHMK0xsA42kQugPk/GXYpNbEcl7DkkdVsU/one5UX7KQPfxLj8vQ==} + engines: {node: '>=14'} + + '@peculiar/asn1-x509@2.11.1': + resolution: {integrity: sha512-SXU4/X6B3FquqQAN6ARI0bFDUV7+L1WlvPEPMKzEMkstd2D7UyM0r93fv241+OjdhqAKYGx5MvV3gzZMAp0APA==} + engines: {node: '>=14'} + + '@peculiar/utils@2.0.3': + resolution: {integrity: sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==} + + '@peculiar/x509@1.14.3': + resolution: {integrity: sha512-C2Xj8FZ0uHWeCXXqX5B4/gVFQmtSkiuOolzAgutjTfseNOHT3pUjljDZsTSxXFGgio54bCzVFqmEOUrIVk8RDA==} + engines: {node: '>=20.0.0'} + '@rolldown/binding-android-arm-eabi@1.3.4': resolution: {integrity: sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1021,6 +1075,10 @@ packages: argparse@3.0.4: resolution: {integrity: sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==} + asn1js@3.1.0: + resolution: {integrity: sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==} + engines: {node: '>=12.0.0'} + assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} @@ -1044,6 +1102,10 @@ packages: resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} engines: {node: '>= 0.8'} + bytestreamjs@2.0.1: + resolution: {integrity: sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==} + engines: {node: '>=6.0.0'} + call-bind-apply-helpers@1.0.2: resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} engines: {node: '>= 0.4'} @@ -1463,6 +1525,10 @@ packages: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} + pkijs@3.4.3: + resolution: {integrity: sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==} + engines: {node: '>=16.0.0'} + postcss@8.5.34: resolution: {integrity: sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==} engines: {node: ^10 || ^12 || >=14} @@ -1479,6 +1545,13 @@ packages: resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} engines: {node: '>=6'} + pvtsutils@1.3.6: + resolution: {integrity: sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==} + + pvutils@1.2.0: + resolution: {integrity: sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==} + engines: {node: '>=16.0.0'} + qs@6.17.1: resolution: {integrity: sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==} engines: {node: '>=0.6'} @@ -1491,6 +1564,9 @@ packages: resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} engines: {node: '>= 0.10'} + reflect-metadata@0.2.2: + resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} + rolldown@1.3.4: resolution: {integrity: sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1503,6 +1579,10 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + selfsigned@5.5.0: + resolution: {integrity: sha512-ftnu3TW4+3eBfLRFnDEkzGxSF/10BJBkaLJuBHZX0kiPS7bRdlpZGu6YGt4KngMkdTwJE6MbjavFpqHvqVt+Ew==} + engines: {node: '>=18'} + semver@7.8.6: resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} engines: {node: '>=10'} @@ -1593,9 +1673,16 @@ packages: resolution: {integrity: sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==} engines: {node: '>=16'} + tslib@1.14.1: + resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} + tslib@2.9.1: resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + tsyringe@4.10.0: + resolution: {integrity: sha512-axr3IdNuVIxnaK5XGEUFTu3YmAQ6lllgrvqfEoR16g/HGnYY/6We4oWENtAnzK6/LpJ2ur9PAb80RBt7/U4ugw==} + engines: {node: '>= 6.0.0'} + typanion@3.14.0: resolution: {integrity: sha512-ZW/lVMRabETuYCd9O9ZvMhAh8GslSqaUjxmK/JLPCh6l73CvLBiuXswj/+7LdnWOgYsQ130FqLzFz5aGT4I3Ug==} @@ -2140,6 +2227,8 @@ snapshots: '@napi-rs/wasm-tools-win32-ia32-msvc': 1.1.2 '@napi-rs/wasm-tools-win32-x64-msvc': 1.1.2 + '@noble/hashes@1.8.0': {} + '@octokit/auth-token@6.0.0': {} '@octokit/core@7.0.8': @@ -2211,6 +2300,100 @@ snapshots: '@oxc-project/types@0.160.0': {} + '@peculiar/asn1-cms@2.11.1': + dependencies: + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + '@peculiar/asn1-x509-attr': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-csr@2.11.1': + dependencies: + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-ecc@2.11.1': + dependencies: + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-pfx@2.11.1': + dependencies: + '@peculiar/asn1-cms': 2.11.1 + '@peculiar/asn1-pkcs8': 2.11.1 + '@peculiar/asn1-rsa': 2.11.1 + '@peculiar/asn1-schema': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-pkcs8@2.11.1': + dependencies: + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-pkcs9@2.11.1': + dependencies: + '@peculiar/asn1-cms': 2.11.1 + '@peculiar/asn1-pfx': 2.11.1 + '@peculiar/asn1-pkcs8': 2.11.1 + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + '@peculiar/asn1-x509-attr': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-rsa@2.11.1': + dependencies: + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-schema@2.11.1': + dependencies: + '@peculiar/utils': 2.0.3 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-x509-attr@2.11.1': + dependencies: + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/asn1-x509@2.11.1': + dependencies: + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/utils': 2.0.3 + asn1js: 3.1.0 + tslib: 2.9.1 + + '@peculiar/utils@2.0.3': + dependencies: + tslib: 2.9.1 + + '@peculiar/x509@1.14.3': + dependencies: + '@peculiar/asn1-cms': 2.11.1 + '@peculiar/asn1-csr': 2.11.1 + '@peculiar/asn1-ecc': 2.11.1 + '@peculiar/asn1-pkcs9': 2.11.1 + '@peculiar/asn1-rsa': 2.11.1 + '@peculiar/asn1-schema': 2.11.1 + '@peculiar/asn1-x509': 2.11.1 + pvtsutils: 1.3.6 + reflect-metadata: 0.2.2 + tslib: 2.9.1 + tsyringe: 4.10.0 + '@rolldown/binding-android-arm-eabi@1.3.4': optional: true @@ -2366,6 +2549,12 @@ snapshots: argparse@3.0.4: {} + asn1js@3.1.0: + dependencies: + pvtsutils: 1.3.6 + pvutils: 1.2.0 + tslib: 2.9.1 + assertion-error@2.0.1: {} balanced-match@4.0.4: {} @@ -2392,6 +2581,8 @@ snapshots: bytes@3.1.2: {} + bytestreamjs@2.0.1: {} + call-bind-apply-helpers@1.0.2: dependencies: es-errors: 1.3.0 @@ -2728,6 +2919,15 @@ snapshots: picomatch@4.0.7: {} + pkijs@3.4.3: + dependencies: + '@noble/hashes': 1.8.0 + asn1js: 3.1.0 + bytestreamjs: 2.0.1 + pvtsutils: 1.3.6 + pvutils: 1.2.0 + tslib: 2.9.1 + postcss@8.5.34: dependencies: nanoid: 3.3.20 @@ -2749,6 +2949,12 @@ snapshots: punycode.js@2.3.1: {} + pvtsutils@1.3.6: + dependencies: + tslib: 2.9.1 + + pvutils@1.2.0: {} + qs@6.17.1: dependencies: es-define-property: 1.0.1 @@ -2763,6 +2969,8 @@ snapshots: iconv-lite: 0.7.3 unpipe: 1.0.0 + reflect-metadata@0.2.2: {} + rolldown@1.3.4: dependencies: '@oxc-project/types': 0.160.0 @@ -2797,6 +3005,11 @@ snapshots: safer-buffer@2.1.2: {} + selfsigned@5.5.0: + dependencies: + '@peculiar/x509': 1.14.3 + pkijs: 3.4.3 + semver@7.8.6: {} send@1.2.1: @@ -2900,8 +3113,14 @@ snapshots: dependencies: tldts: 7.6.4 + tslib@1.14.1: {} + tslib@2.9.1: {} + tsyringe@4.10.0: + dependencies: + tslib: 1.14.1 + typanion@3.14.0: {} type-is@2.1.0: diff --git a/impit-node/test/basics.test.ts b/impit-node/test/basics.test.ts index edfa4294..3d93a2e4 100644 --- a/impit-node/test/basics.test.ts +++ b/impit-node/test/basics.test.ts @@ -1,6 +1,5 @@ import http from 'http'; import https from 'https'; -import { readFileSync } from 'fs'; import { Readable } from 'node:stream'; import { test, describe, expect, beforeAll, afterAll } from 'vitest'; @@ -10,6 +9,7 @@ import { routes, runProxyServer, runServer } from './mock.server.js'; import { CookieJar } from 'tough-cookie'; import { runSocksServer } from 'socks-server-lib'; +import { generate } from 'selfsigned'; import { Server as ProxyServer } from 'proxy-chain'; function getHttpBinUrl(path: string, https?: boolean): string { @@ -396,17 +396,26 @@ describe.each([ }); test('ca trusts an extra CA certificate', async () => { - const fixture = (name: string) => readFileSync(new URL(`./fixtures/${name}`, import.meta.url)); - const server = https.createServer({ - key: fixture('localhost-key.pem'), - cert: fixture('localhost.pem'), - }, (req, res) => res.end('ok')).listen(0); + const ca = await generate([{ name: 'commonName', value: 'impit test CA' }], { + keyType: 'ec', + algorithm: 'sha256', + extensions: [ + { name: 'basicConstraints', cA: true, critical: true }, + { name: 'keyUsage', keyCertSign: true, critical: true }, + ], + }); + const { cert, private: key } = await generate([{ name: 'commonName', value: 'localhost' }], { + keyType: 'ec', + algorithm: 'sha256', + ca: { key: ca.private, cert: ca.cert }, + }); + const server = https.createServer({ key, cert }, (req, res) => res.end('ok')).listen(0); const url = `https://localhost:${(server.address() as AddressInfo).port}/`; try { await expect(impit.fetch(url)).rejects.toThrow(); - const response = await new Impit({ browser, ca: fixture('ca.pem') }).fetch(url); + const response = await new Impit({ browser, ca: ca.cert }).fetch(url); expect(await response.text()).toBe('ok'); } finally { server.close(); diff --git a/impit-node/test/fixtures/ca.pem b/impit-node/test/fixtures/ca.pem deleted file mode 100644 index d3a104da..00000000 --- a/impit-node/test/fixtures/ca.pem +++ /dev/null @@ -1,11 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIBlzCCAT2gAwIBAgIUW4VsFwWWoaLwV/eI3F+jLL4M/AMwCgYIKoZIzj0EAwIw -GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNTVaGA8yMTI2 -MTExMDEzMjE1NVowGDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTBZMBMGByqGSM49 -AgEGCCqGSM49AwEHA0IABGwzmag2oo2QXwuI0rR/T2JuB8J9bfm64FSCoqOJ/b1H -VvXRgUxki+HPyGjTZmmdOb9K7dEL4o7/LQbrCUh7ggejYzBhMB0GA1UdDgQWBBS/ -XI020VYF4YEA/6t3mhy2Rcnp8jAfBgNVHSMEGDAWgBS/XI020VYF4YEA/6t3mhy2 -Rcnp8jAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwICBDAKBggqhkjOPQQD -AgNIADBFAiAnqdT01VgmpQgkoM0lZphxaLNOAMezwO2+mLgGpskiawIhALRVS686 -ALAQZEeIkSSt7TDDY6Olxno8LvoAwtcmzkCD ------END CERTIFICATE----- diff --git a/impit-node/test/fixtures/localhost-key.pem b/impit-node/test/fixtures/localhost-key.pem deleted file mode 100644 index ecbe0356..00000000 --- a/impit-node/test/fixtures/localhost-key.pem +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgq7iuiyCkj01DY/iw -ms9zKQkYTIgMJg0VeBpuGXzySHWhRANCAASbaPjYZhOBldFuieeg0gLTP7w+74jc -SIM2LNy2UmmcJxofhpUB/HboedpcQWiDJZ/HgIqxKEC3OR6Clks51ik1 ------END PRIVATE KEY----- diff --git a/impit-node/test/fixtures/localhost.pem b/impit-node/test/fixtures/localhost.pem deleted file mode 100644 index f03cd2b9..00000000 --- a/impit-node/test/fixtures/localhost.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIB1jCCAXugAwIBAgIUIP/MfRu2mVwdN54FX4yZeFUWqjUwCgYIKoZIzj0EAwIw -GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNThaGA8yMTI2 -MTExMDEzMjE1OFowFDESMBAGA1UEAwwJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYI -KoZIzj0DAQcDQgAEm2j42GYTgZXRbonnoNIC0z+8Pu+I3EiDNizctlJpnCcaH4aV -Afx26HnaXEFogyWfx4CKsShAtzkegpZLOdYpNaOBpDCBoTAMBgNVHRMBAf8EAjAA -MA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAsBgNVHREEJTAj -gglsb2NhbGhvc3SHBH8AAAGHEAAAAAAAAAAAAAAAAAAAAAEwHQYDVR0OBBYEFA2W -v+gaa+JGUdhCXMCN1O5Lx1uHMB8GA1UdIwQYMBaAFL9cjTbRVgXhgQD/q3eaHLZF -yenyMAoGCCqGSM49BAMCA0kAMEYCIQDt+4Hqbj80GROcT1FCA1nDEfcDQcdzU5eP -GJp6yYPuaQIhAJjxQD+7FB5k8oGvIaYGMbU6cYtM6sLDFe/UYrq/X6R5 ------END CERTIFICATE----- diff --git a/impit-python/pyproject.toml b/impit-python/pyproject.toml index 7736e7d9..973d82e0 100644 --- a/impit-python/pyproject.toml +++ b/impit-python/pyproject.toml @@ -52,6 +52,7 @@ dev = [ "ruff", "setuptools", "pproxy>=2.7.9", + "trustme>=1.2.1", ] docs = [ "sphinx>=7.4.7", diff --git a/impit-python/test/basic_client_test.py b/impit-python/test/basic_client_test.py index a28c1e14..e8a11fed 100644 --- a/impit-python/test/basic_client_test.py +++ b/impit-python/test/basic_client_test.py @@ -9,6 +9,7 @@ from urllib.parse import urlparse import pytest +import trustme from impit import ( USE_CLIENT_DEFAULT, @@ -26,7 +27,7 @@ ) from .httpbin import get_httpbin_url -from .servers import FIXTURES, echoing_server, set_cookie_server, tls_server +from .servers import echoing_server, set_cookie_server, tls_server from .setup_proxy import start_proxy_server @@ -657,12 +658,15 @@ def test_local_address(self, browser: Browser, addresses: tuple[str, str]) -> No assert response.status_code == 200 thread.join() - def test_verify_ca_bundle(self, browser: Browser) -> None: - with tls_server() as port: + def test_verify_ca_bundle(self, browser: Browser, tmp_path: Path) -> None: + ca = trustme.CA() + ca.cert_pem.write_to_path(tmp_path / 'ca.pem') + + with tls_server(ca) as port: with pytest.raises(HTTPError): Client(browser=browser).get(f'https://127.0.0.1:{port}/') - response = Client(browser=browser, verify=FIXTURES / 'ca.pem').get(f'https://127.0.0.1:{port}/') + response = Client(browser=browser, verify=tmp_path / 'ca.pem').get(f'https://127.0.0.1:{port}/') assert response.text == 'ok' diff --git a/impit-python/test/fixtures/ca.pem b/impit-python/test/fixtures/ca.pem deleted file mode 100644 index d3a104da..00000000 --- a/impit-python/test/fixtures/ca.pem +++ /dev/null @@ -1,11 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIBlzCCAT2gAwIBAgIUW4VsFwWWoaLwV/eI3F+jLL4M/AMwCgYIKoZIzj0EAwIw -GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNTVaGA8yMTI2 -MTExMDEzMjE1NVowGDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTBZMBMGByqGSM49 -AgEGCCqGSM49AwEHA0IABGwzmag2oo2QXwuI0rR/T2JuB8J9bfm64FSCoqOJ/b1H -VvXRgUxki+HPyGjTZmmdOb9K7dEL4o7/LQbrCUh7ggejYzBhMB0GA1UdDgQWBBS/ -XI020VYF4YEA/6t3mhy2Rcnp8jAfBgNVHSMEGDAWgBS/XI020VYF4YEA/6t3mhy2 -Rcnp8jAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwICBDAKBggqhkjOPQQD -AgNIADBFAiAnqdT01VgmpQgkoM0lZphxaLNOAMezwO2+mLgGpskiawIhALRVS686 -ALAQZEeIkSSt7TDDY6Olxno8LvoAwtcmzkCD ------END CERTIFICATE----- diff --git a/impit-python/test/fixtures/localhost-key.pem b/impit-python/test/fixtures/localhost-key.pem deleted file mode 100644 index ecbe0356..00000000 --- a/impit-python/test/fixtures/localhost-key.pem +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgq7iuiyCkj01DY/iw -ms9zKQkYTIgMJg0VeBpuGXzySHWhRANCAASbaPjYZhOBldFuieeg0gLTP7w+74jc -SIM2LNy2UmmcJxofhpUB/HboedpcQWiDJZ/HgIqxKEC3OR6Clks51ik1 ------END PRIVATE KEY----- diff --git a/impit-python/test/fixtures/localhost.pem b/impit-python/test/fixtures/localhost.pem deleted file mode 100644 index f03cd2b9..00000000 --- a/impit-python/test/fixtures/localhost.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIB1jCCAXugAwIBAgIUIP/MfRu2mVwdN54FX4yZeFUWqjUwCgYIKoZIzj0EAwIw -GDEWMBQGA1UEAwwNaW1waXQgdGVzdCBDQTAgFw0yNjEyMDQxMzIxNThaGA8yMTI2 -MTExMDEzMjE1OFowFDESMBAGA1UEAwwJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYI -KoZIzj0DAQcDQgAEm2j42GYTgZXRbonnoNIC0z+8Pu+I3EiDNizctlJpnCcaH4aV -Afx26HnaXEFogyWfx4CKsShAtzkegpZLOdYpNaOBpDCBoTAMBgNVHRMBAf8EAjAA -MA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAsBgNVHREEJTAj -gglsb2NhbGhvc3SHBH8AAAGHEAAAAAAAAAAAAAAAAAAAAAEwHQYDVR0OBBYEFA2W -v+gaa+JGUdhCXMCN1O5Lx1uHMB8GA1UdIwQYMBaAFL9cjTbRVgXhgQD/q3eaHLZF -yenyMAoGCCqGSM49BAMCA0kAMEYCIQDt+4Hqbj80GROcT1FCA1nDEfcDQcdzU5eP -GJp6yYPuaQIhAJjxQD+7FB5k8oGvIaYGMbU6cYtM6sLDFe/UYrq/X6R5 ------END CERTIFICATE----- diff --git a/impit-python/test/servers.py b/impit-python/test/servers.py index baa3ace3..b2d7983e 100644 --- a/impit-python/test/servers.py +++ b/impit-python/test/servers.py @@ -3,18 +3,18 @@ from __future__ import annotations import contextlib +import datetime as dt import http.server import re import socket import ssl import threading -from pathlib import Path from typing import TYPE_CHECKING if TYPE_CHECKING: from collections.abc import Iterator -FIXTURES = Path(__file__).parent / 'fixtures' + import trustme @contextlib.contextmanager @@ -85,8 +85,8 @@ def log_message(self, *_: object) -> None: @contextlib.contextmanager -def tls_server() -> Iterator[int]: - """Answer every request with `ok` over HTTPS with a certificate signed by `fixtures/ca.pem`, and yield the port.""" +def tls_server(ca: trustme.CA) -> Iterator[int]: + """Answer every request with `ok` over HTTPS with a certificate issued by `ca`, and yield the port to call.""" class Handler(http.server.BaseHTTPRequestHandler): def do_GET(self) -> None: @@ -99,7 +99,9 @@ def log_message(self, *_: object) -> None: pass context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) - context.load_cert_chain(FIXTURES / 'localhost.pem', FIXTURES / 'localhost-key.pem') + now = dt.datetime.now(dt.timezone.utc) + # macOS rejects TLS server certificates that are valid for more than 825 days. + ca.issue_cert('127.0.0.1', not_before=now, not_after=now + dt.timedelta(days=1)).configure_cert(context) server = http.server.ThreadingHTTPServer(('127.0.0.1', 0), Handler) server.socket = context.wrap_socket(server.socket, server_side=True) thread = threading.Thread(target=server.serve_forever, daemon=True) diff --git a/impit-python/uv.lock b/impit-python/uv.lock index 4408b3d6..4dd486c2 100644 --- a/impit-python/uv.lock +++ b/impit-python/uv.lock @@ -2,7 +2,8 @@ version = 1 revision = 5 requires-python = ">=3.10" resolution-markers = [ - "python_full_version >= '3.15'", + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.15' and platform_python_implementation == 'PyPy'", "python_full_version >= '3.13' and python_full_version < '3.15'", "python_full_version == '3.12.*'", "python_full_version >= '3.11.5' and python_full_version < '3.12'", @@ -140,6 +141,117 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" }, ] +[[package]] +name = "cffi" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser", version = "3.11", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11' and implementation_name != 'PyPy'" }, + { name = "pycparser", version = "3.12", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11' and implementation_name != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b6/d2/2cde336b375f55c76ca670f0be3978cc048e31e24f3b4d7ce8473150a388/cffi-2.1.1-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:baed1e86cc735622097354b9d1281406caf42ff42a886d29faa8e8d1630333be", size = 183779, upload-time = "2026-08-03T21:19:15.602Z" }, + { url = "https://files.pythonhosted.org/packages/94/1a/4b2f7c92293ba05cbd4a9a1b28faaf0326272d9488e6354657571c48a7aa/cffi-2.1.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ca82be1a1d406ecfe1d25dc16cb33488e5a16bf4438c9fb590484ea29d92478b", size = 184178, upload-time = "2026-08-03T21:19:16.67Z" }, + { url = "https://files.pythonhosted.org/packages/17/0b/ba385d8ccedf926c3cd06e8e2f327027da5afe5f0eb30f1f7bc43ac55125/cffi-2.1.1-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004", size = 211037, upload-time = "2026-08-03T21:19:17.705Z" }, + { url = "https://files.pythonhosted.org/packages/a3/b9/0f2e58b2cefa33255bff36935d42b13180fe559bba82596540eb404bde7d/cffi-2.1.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9", size = 218652, upload-time = "2026-08-03T21:19:18.735Z" }, + { url = "https://files.pythonhosted.org/packages/37/15/180e0dab27b9312c7479003d14c9e547634b7dcb934e2cc4650e1b131a7a/cffi-2.1.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:9f8d177621de5cb38ee3e731eda45d421db093ec0739f46a5594babda7987a98", size = 205422, upload-time = "2026-08-03T21:19:19.96Z" }, + { url = "https://files.pythonhosted.org/packages/18/d4/03026f0c850cbbaa9030750490225b4a7f4d524ea4df72c3cc740a90f4ef/cffi-2.1.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:75f80557d1389eddbd0de2681f6a390a0c5338c31ddaa821381c203fc3fd50d9", size = 205444, upload-time = "2026-08-03T21:19:21.246Z" }, + { url = "https://files.pythonhosted.org/packages/75/77/60bebf6f818bec84210ac5b6979ce4eeadce6fbbaabc9c7ab23e506d1ce5/cffi-2.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6", size = 218742, upload-time = "2026-08-03T21:19:22.523Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ae/679bf47e73fd77b352171727f07de559a003f14de5d02b904a6ec1fa73ca/cffi-2.1.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf", size = 221054, upload-time = "2026-08-03T21:19:23.694Z" }, + { url = "https://files.pythonhosted.org/packages/09/b8/eefc0e06913b70aa153bf74c946094a18f58fd4aff11b7f372bfdfdca050/cffi-2.1.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659", size = 213489, upload-time = "2026-08-03T21:19:24.922Z" }, + { url = "https://files.pythonhosted.org/packages/6f/13/4e56852824a03cdf68523a35686f1c28eacd4bd30a7b0a78e682e6e6e1d3/cffi-2.1.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9", size = 220241, upload-time = "2026-08-03T21:19:26.214Z" }, + { url = "https://files.pythonhosted.org/packages/99/7f/040f9e163e4acac3ee3d85b02d00b2576e7ca980d8785f0a3a5f1a9bf7f5/cffi-2.1.1-cp310-cp310-win32.whl", hash = "sha256:7ce713ace7c0e4520535b42b77eaa742c16dab813978064913e5a3cf82973b41", size = 174578, upload-time = "2026-08-03T21:19:27.338Z" }, + { url = "https://files.pythonhosted.org/packages/ba/0b/644a2ec1a4eaba49c2939410bb1eb1d25b09d6d0582f5d2f95c537043725/cffi-2.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:a48d62ab9d6f4f98c983223a547af44be6ca3691074c31cecced6facd3ba2dc1", size = 185082, upload-time = "2026-08-03T21:19:28.409Z" }, + { url = "https://files.pythonhosted.org/packages/70/d2/16d99a0c4948febc0ebd133a13b2f688ff7f8cb04da971e1128872ce0c03/cffi-2.1.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12", size = 183838, upload-time = "2026-08-03T21:19:29.637Z" }, + { url = "https://files.pythonhosted.org/packages/cd/95/31b535a9f0220ae9f357de4a08d57ce89cb417653c2fd9f075f50822a388/cffi-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1", size = 184168, upload-time = "2026-08-03T21:19:30.764Z" }, + { url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" }, + { url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" }, + { url = "https://files.pythonhosted.org/packages/a7/92/500760486c8baab49a7a8a58ba7fc3355ec3974b454b8a09e528efde9e1d/cffi-2.1.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990", size = 205569, upload-time = "2026-08-03T21:19:34.142Z" }, + { url = "https://files.pythonhosted.org/packages/a5/a7/a67c733254d6e7373f7822f8082d8d6beade791e0cf12a7611f376fa61c7/cffi-2.1.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af", size = 204907, upload-time = "2026-08-03T21:19:35.174Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" }, + { url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" }, + { url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" }, + { url = "https://files.pythonhosted.org/packages/db/e2/7e8109f65445bdc673a7b54f02c677de462db75674220fd1335efc8eb598/cffi-2.1.1-cp311-cp311-win32.whl", hash = "sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3", size = 174470, upload-time = "2026-08-03T21:19:41.246Z" }, + { url = "https://files.pythonhosted.org/packages/73/c0/77ba02423c2f7d7091143c45cd49e0e6575c4c1967394bb542bd923a9b74/cffi-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0", size = 185096, upload-time = "2026-08-03T21:19:42.615Z" }, + { url = "https://files.pythonhosted.org/packages/7c/47/9f1f85f9672ceda4984dc6c4f8824e8558992a2972c3d3c81fb8eb28d4ba/cffi-2.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455", size = 179941, upload-time = "2026-08-03T21:19:43.747Z" }, + { url = "https://files.pythonhosted.org/packages/10/69/43965eccfdead3b9220015fd1320e117be8c6ed01a62ffab76eeb752f5d5/cffi-2.1.1-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0", size = 184821, upload-time = "2026-08-03T21:19:44.887Z" }, + { url = "https://files.pythonhosted.org/packages/54/7d/16e5a096677b5e313ca80cd5e5170efa3ea44624a82bb111925522da64b1/cffi-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf", size = 184719, upload-time = "2026-08-03T21:19:46.129Z" }, + { url = "https://files.pythonhosted.org/packages/56/e6/8941622732edec876dd17d0453dce07317ae96db34f2ec1436c9d3785986/cffi-2.1.1-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a", size = 214799, upload-time = "2026-08-03T21:19:47.218Z" }, + { url = "https://files.pythonhosted.org/packages/44/de/f98430906df1545ffde0d543dd124a7a439bc2cd32b36b9c53f805df7333/cffi-2.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890", size = 222389, upload-time = "2026-08-03T21:19:48.331Z" }, + { url = "https://files.pythonhosted.org/packages/6a/5b/717f1526b9957b34456313c31645c5b82b8fb5c3fe9e4752999be7128bfc/cffi-2.1.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50", size = 210249, upload-time = "2026-08-03T21:19:49.543Z" }, + { url = "https://files.pythonhosted.org/packages/64/b3/f8aa4f3e34986c7e4ec45072d1b1b9dd295b6b18007b45518d79726dd725/cffi-2.1.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e", size = 208775, upload-time = "2026-08-03T21:19:50.918Z" }, + { url = "https://files.pythonhosted.org/packages/b1/db/dceb9dd5b231e1da801793f8acc9f3c52a7e1afe40bb1aae37e02b0faad5/cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf", size = 221822, upload-time = "2026-08-03T21:19:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/a0/d2/6cd24ae3be000a634109c247d1475d62e5616d0dc78c82770942ec384248/cffi-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517", size = 225232, upload-time = "2026-08-03T21:19:53.109Z" }, + { url = "https://files.pythonhosted.org/packages/cb/52/3fa190537004dd7f0ab860a6dc7c0175b8667f68d1e618a46f5498d30250/cffi-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735", size = 223597, upload-time = "2026-08-03T21:19:54.515Z" }, + { url = "https://files.pythonhosted.org/packages/80/fb/0bb75b7039588c074b37ae99f40d9bfddf990ecb2fbc346ebccd2e56b9be/cffi-2.1.1-cp312-cp312-win32.whl", hash = "sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e", size = 175292, upload-time = "2026-08-03T21:19:55.566Z" }, + { url = "https://files.pythonhosted.org/packages/d9/79/615cc094e2fb508cade7de88d3b4f6c4ec2bab695c97bce9153dc65aadf5/cffi-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a", size = 185919, upload-time = "2026-08-03T21:19:56.89Z" }, + { url = "https://files.pythonhosted.org/packages/70/c6/d0ea84713fe46b243a436a18fcd47d639732747e21635c8a27191b06dc30/cffi-2.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80", size = 180093, upload-time = "2026-08-03T21:19:58.155Z" }, + { url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" }, + { url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" }, + { url = "https://files.pythonhosted.org/packages/a7/46/2e5fdde8555706dd98139a910ca11be02809f3f605ce956f655d0214e100/cffi-2.1.1-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6", size = 184805, upload-time = "2026-08-03T21:20:02.02Z" }, + { url = "https://files.pythonhosted.org/packages/55/41/4c7042f317b9217502988f0873af87e16ad606dc20f84e546e3e6ce9764c/cffi-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971", size = 184764, upload-time = "2026-08-03T21:20:03.141Z" }, + { url = "https://files.pythonhosted.org/packages/43/1f/1c3d90d91811c8f86ced9ed637956c54bfe5b79ca98fe976d7f8c8979f6b/cffi-2.1.1-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c", size = 214722, upload-time = "2026-08-03T21:20:04.377Z" }, + { url = "https://files.pythonhosted.org/packages/37/6f/3b5ce4c3b2192d250f04908f2bfd91ef34552ec8f7716a5d4abdb8d67bb2/cffi-2.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125", size = 222369, upload-time = "2026-08-03T21:20:05.544Z" }, + { url = "https://files.pythonhosted.org/packages/02/10/4b3c75dde3d9663c9e02ba05c2668b954f671d4bbe346413ca8c696b295a/cffi-2.1.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264", size = 210175, upload-time = "2026-08-03T21:20:06.75Z" }, + { url = "https://files.pythonhosted.org/packages/df/62/14f74b9543e605d17701dc797b815958b8bb70b7624ce1b832ddad48ed6c/cffi-2.1.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3", size = 208670, upload-time = "2026-08-03T21:20:08.04Z" }, + { url = "https://files.pythonhosted.org/packages/95/95/86342356ff5953b3fb06f7ef7c5bee212d45e770abc7218d451b9148313c/cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2", size = 221824, upload-time = "2026-08-03T21:20:09.274Z" }, + { url = "https://files.pythonhosted.org/packages/eb/ff/7b3429ff53aafe931ed8a5fc69f481bbef7ba6de87ddcbb63d08f483f613/cffi-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b", size = 225148, upload-time = "2026-08-03T21:20:10.7Z" }, + { url = "https://files.pythonhosted.org/packages/34/34/a95870b9221e09cf4f2ce3178b1a210abdfe63a1bd357da940418d7b8d15/cffi-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7", size = 223564, upload-time = "2026-08-03T21:20:12.165Z" }, + { url = "https://files.pythonhosted.org/packages/70/ea/839b50531021a647fb5e929f72cf97bc1ff702b5472166164b5b6e76b851/cffi-2.1.1-cp313-cp313-win32.whl", hash = "sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac", size = 175263, upload-time = "2026-08-03T21:20:13.559Z" }, + { url = "https://files.pythonhosted.org/packages/60/a6/8b149b2c3f2e11aaa1618ef64500b45f50f22c57a977a4dff1aff1f91042/cffi-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d", size = 185688, upload-time = "2026-08-03T21:20:14.69Z" }, + { url = "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973", size = 180078, upload-time = "2026-08-03T21:20:15.917Z" }, + { url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" }, + { url = "https://files.pythonhosted.org/packages/d9/99/c4b0c17cacdc9c3b8f280026286a9826d6a208c0f047591a3c3ce99b91fd/cffi-2.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54", size = 184964, upload-time = "2026-08-03T21:20:19.708Z" }, + { url = "https://files.pythonhosted.org/packages/b3/a9/9db617d05d7367c1ad0ab00b3aa6e6f9281edd689b4ee9ea0e5a84e89c97/cffi-2.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72", size = 184962, upload-time = "2026-08-03T21:20:20.833Z" }, + { url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" }, + { url = "https://files.pythonhosted.org/packages/80/10/c5c0cbf0a657aecf59ef511409734230bf556f05a0d6c9eed7aa5c0a0166/cffi-2.1.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062", size = 209985, upload-time = "2026-08-03T21:20:23.401Z" }, + { url = "https://files.pythonhosted.org/packages/d5/6c/bfa0b87b03b9238148beca990292843c9396ba069b54496596594173de7b/cffi-2.1.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03", size = 208530, upload-time = "2026-08-03T21:20:24.628Z" }, + { url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" }, + { url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" }, + { url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" }, + { url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" }, + { url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" }, + { url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" }, + { url = "https://files.pythonhosted.org/packages/23/59/40338bf421c5accea1d45158170c87006ef1cd371b05c077e76476949728/cffi-2.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3", size = 188504, upload-time = "2026-08-03T21:20:29.495Z" }, + { url = "https://files.pythonhosted.org/packages/7d/47/5ecf1023850036e674c77ec4de86182d309ae344e39e7cba984b7df5d647/cffi-2.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2", size = 188259, upload-time = "2026-08-03T21:20:31.291Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" }, + { url = "https://files.pythonhosted.org/packages/4d/45/ba4c93527bc38616a8bd36488acb69a2212d60486794f0c1f318949bbb76/cffi-2.1.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc", size = 211538, upload-time = "2026-08-03T21:20:33.808Z" }, + { url = "https://files.pythonhosted.org/packages/80/e9/b6ef565e452acb932fb0cb5443f44a78efbd1233e566f02b5a83855e9115/cffi-2.1.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29", size = 210688, upload-time = "2026-08-03T21:20:34.974Z" }, + { url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" }, + { url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" }, + { url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" }, + { url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" }, + { url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" }, + { url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" }, + { url = "https://files.pythonhosted.org/packages/c1/8f/9ebe220eab48a093d1a5a5e339ab0dc7316eef3bb04d63c42f0251b61f50/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d", size = 194043, upload-time = "2026-08-03T21:20:48.179Z" }, + { url = "https://files.pythonhosted.org/packages/ff/69/844bad3ece306c4782c2ecb93597035b6690d48704b803914c199da1e8b3/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b", size = 196737, upload-time = "2026-08-03T21:20:49.457Z" }, + { url = "https://files.pythonhosted.org/packages/1b/8a/af668013284634733f02d683458a0728739c7d6ddb5e14cb0c20832266fe/cffi-2.1.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4", size = 184933, upload-time = "2026-08-03T21:20:50.639Z" }, + { url = "https://files.pythonhosted.org/packages/0c/75/2f5207ff6d1a613133b23a5203cc0c2a628313b5eb3974d7956ae3c57950/cffi-2.1.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8", size = 185002, upload-time = "2026-08-03T21:20:52.173Z" }, + { url = "https://files.pythonhosted.org/packages/e2/31/9e1313b0a6e30e91b3b3d3fff51ae99c857c07738e3afcce1f7334e1b7ab/cffi-2.1.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6", size = 222271, upload-time = "2026-08-03T21:20:53.462Z" }, + { url = "https://files.pythonhosted.org/packages/50/e3/f6234a833e6e08c7007003074723c406559eecf9b48dfc97471e5a8eb7a0/cffi-2.1.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80", size = 209919, upload-time = "2026-08-03T21:20:54.783Z" }, + { url = "https://files.pythonhosted.org/packages/0d/fc/5f74e293fced6edb51af3a46c4ccf6c23c9943774ecb375ddbd522c76add/cffi-2.1.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779", size = 208529, upload-time = "2026-08-03T21:20:56.066Z" }, + { url = "https://files.pythonhosted.org/packages/44/16/29e6d01b388bef055ecd6ca8244b3f4d336bd09e92d5d892187b9601084e/cffi-2.1.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399", size = 221630, upload-time = "2026-08-03T21:20:57.336Z" }, + { url = "https://files.pythonhosted.org/packages/a4/18/fa7f1f6857d5eb88a4ca99ffcbfb7c387a287ccc154c64a73e86314745d7/cffi-2.1.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688", size = 225134, upload-time = "2026-08-03T21:20:58.675Z" }, + { url = "https://files.pythonhosted.org/packages/e0/9f/e8e3dfa04a1b4c241f8c91faacad872b4d4efd051d49764ad4e2fd4b9fea/cffi-2.1.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7", size = 223197, upload-time = "2026-08-03T21:20:59.968Z" }, + { url = "https://files.pythonhosted.org/packages/f8/7e/8debeb04f1ab9fe2a6963964cd6f1aaf7192627b83926586a6a4e089c9fa/cffi-2.1.1-cp315-cp315-win32.whl", hash = "sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac", size = 177683, upload-time = "2026-08-03T21:21:14.901Z" }, + { url = "https://files.pythonhosted.org/packages/e0/31/5158704cc474ab65c1647932e88be78dc0873f47130e253be38bcaf13d01/cffi-2.1.1-cp315-cp315-win_amd64.whl", hash = "sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960", size = 187897, upload-time = "2026-08-03T21:21:16.108Z" }, + { url = "https://files.pythonhosted.org/packages/cc/4b/b3a2da8570c704ffc0f9762cdc3ec0f02c8573798e0b5cf7f11c82bbb70f/cffi-2.1.1-cp315-cp315-win_arm64.whl", hash = "sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1", size = 182935, upload-time = "2026-08-03T21:21:17.271Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ef/5443574510a1207e6f6bc38ba6e1f1de36cb48fef07b2728bb896a21f430/cffi-2.1.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc", size = 188464, upload-time = "2026-08-03T21:21:01.163Z" }, + { url = "https://files.pythonhosted.org/packages/7e/ae/a56fa8c4686ad50e148fcbc8d3ae0d03915ff5c30d795058988c24118cef/cffi-2.1.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab", size = 188262, upload-time = "2026-08-03T21:21:02.382Z" }, + { url = "https://files.pythonhosted.org/packages/53/b2/6187f46f2912276a3ae284076109cc5c8680482f11f766ccf26db4a86427/cffi-2.1.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e", size = 223779, upload-time = "2026-08-03T21:21:03.553Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f6/c3ad28bd19f77047a03084424fbd4cbe997303267c14423737324be0385d/cffi-2.1.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358", size = 211520, upload-time = "2026-08-03T21:21:04.863Z" }, + { url = "https://files.pythonhosted.org/packages/a0/cd/ccac9013a5bd9fd764de118674ab9c805b5ca10c19270d90ee273f8b2240/cffi-2.1.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231", size = 210673, upload-time = "2026-08-03T21:21:06.223Z" }, + { url = "https://files.pythonhosted.org/packages/52/86/2976131c639aead931c5bee5aba67e4b09fbeb8018b6f282f70803f923a7/cffi-2.1.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6", size = 223835, upload-time = "2026-08-03T21:21:07.539Z" }, + { url = "https://files.pythonhosted.org/packages/ac/0c/33a7aeab2f9c76918c52e084beb39c570db3588133412929e8ec06fab90b/cffi-2.1.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94", size = 226705, upload-time = "2026-08-03T21:21:08.774Z" }, + { url = "https://files.pythonhosted.org/packages/e3/26/2cde30fdde421130bfc18f70395731a6e6b2053c6a1978a5258ff04e72fa/cffi-2.1.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5", size = 225539, upload-time = "2026-08-03T21:21:09.911Z" }, + { url = "https://files.pythonhosted.org/packages/6d/cd/a361394c94b2129d604bb846f624a8e88255a3ee33129c434a00d715e64f/cffi-2.1.1-cp315-cp315t-win32.whl", hash = "sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66", size = 182707, upload-time = "2026-08-03T21:21:11.226Z" }, + { url = "https://files.pythonhosted.org/packages/9b/b5/ba2b299993c26577d529b6ae29841f9e15b9fcf004d65f423f4fcf94ade9/cffi-2.1.1-cp315-cp315t-win_amd64.whl", hash = "sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3", size = 193772, upload-time = "2026-08-03T21:21:12.39Z" }, + { url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" }, +] + [[package]] name = "charset-normalizer" version = "3.5.2" @@ -453,7 +565,8 @@ name = "coverage" version = "7.17.2" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.15'", + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.15' and platform_python_implementation == 'PyPy'", "python_full_version >= '3.13' and python_full_version < '3.15'", "python_full_version == '3.12.*'", "python_full_version >= '3.11.5' and python_full_version < '3.12'", @@ -581,6 +694,79 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/da/91/1805cc144497d76a436f66a21fa57492bee7ed1257826fb992f03b9b2b6f/coverage-7.17.2-py3-none-any.whl", hash = "sha256:e674027ceb6bfd959f1bb035000fd20fa8b717dc6765adaaf8bca347822c8c7d", size = 219280, upload-time = "2026-11-04T19:52:32.726Z" }, ] +[[package]] +name = "cryptography" +version = "51.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/11/47/8efef61675188cc7d2c2aa1198510e945f09da25be72865373a39fc6e8d6/cryptography-51.0.0.tar.gz", hash = "sha256:e0de4d4939458eb3e8efac86b398959959930babc6931572792f9ba8e5c5d47d", size = 908851, upload-time = "2026-12-02T00:10:58.984Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/0f/7008d4e600f157e5c5e46f22f5e28d73d4fe4464921dbd20b447512c685d/cryptography-51.0.0-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:625b3525aa9d5d6533d3a4c6d16cbfc2fb399f6eebce03cce4bda4aa23ac6b13", size = 4030862, upload-time = "2026-12-02T00:08:59.756Z" }, + { url = "https://files.pythonhosted.org/packages/4e/a8/33552e1cc14fdcea8620834a3559d76284c5a61dd2cb12ae45dc5b6b04ef/cryptography-51.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:007677e0c867b98b5c94e1e907a8414deb35df684af772cffde4b02b78e898ee", size = 4867786, upload-time = "2026-12-02T00:09:02.666Z" }, + { url = "https://files.pythonhosted.org/packages/99/e4/ba5202399aa2235159d532dc519186d11cca5e5a4b6c2968414c7f48b3ed/cryptography-51.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d377381691102a232e35e8f9a2e43db430e059c62a4b39c747826e630ad694c4", size = 4885849, upload-time = "2026-12-02T00:09:04.587Z" }, + { url = "https://files.pythonhosted.org/packages/95/90/7a6e27032a0fd92aea433ad06d83781e9fc1b5b8b592b64a4f8a6a46e980/cryptography-51.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:51e66c9b84f2ad66593037b34b5e1301a1fb91bbb82c0e5c03fa4dd6c8451140", size = 4871633, upload-time = "2026-12-02T00:09:06.591Z" }, + { url = "https://files.pythonhosted.org/packages/c2/40/1ce3846b657488952972c42d7a1fdb8a9ca6dd58a1adf041829d23845956/cryptography-51.0.0-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:e032d1c25a1be1967c4e6ccf5531a7a59dcba3c2d8ab6070831bd7b59d4d18ef", size = 5527918, upload-time = "2026-12-02T00:09:08.836Z" }, + { url = "https://files.pythonhosted.org/packages/ac/2b/703509575e2dfab65c5c272884da29bb3ff454b55ac571a591def0821d03/cryptography-51.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:8fee66fa5555fb4971c199a77ef398e36c4b38c7ecf7307d3034235a49e09d55", size = 4923821, upload-time = "2026-12-02T00:09:11.245Z" }, + { url = "https://files.pythonhosted.org/packages/a8/e5/bd19ad9ecac1ce418a53d7a6af7a0e7da75a0d2f0d7ccc493a69eb0d055c/cryptography-51.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:8671127e4eee73f3d67b1e64f7f88fd202d127f01d1b6ad76187881095fc427c", size = 4533156, upload-time = "2026-12-02T00:09:12.956Z" }, + { url = "https://files.pythonhosted.org/packages/0f/d8/5532d55e0399646c0c5c81c29a471189be9c6ca65b30186b2403f5c59133/cryptography-51.0.0-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:8f5676bf6cbd9ada7a24bd0e799acd64e806d8555fad50cae351b29ef52a2a43", size = 4871182, upload-time = "2026-12-02T00:09:14.588Z" }, + { url = "https://files.pythonhosted.org/packages/00/60/cb0323a2dc24e7fe3b4228e1be7f3c005b34137dae0f5f90c2525531a7c9/cryptography-51.0.0-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:ec2dae4de10ffb3679e1b3428e9ddb78b6aa9e8212bd2386cc923c117682c989", size = 5485224, upload-time = "2026-12-02T00:09:16.278Z" }, + { url = "https://files.pythonhosted.org/packages/5c/4b/c5001a83e1dcf75edf9f964a64ef7c64c398054a7f31f275051fdbfc17a9/cryptography-51.0.0-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:f757462a434cacd8ce84f669b6ff375bf4dcf15588bbba66fa8fd0ddb8b6483d", size = 4923465, upload-time = "2026-12-02T00:09:18.007Z" }, + { url = "https://files.pythonhosted.org/packages/09/dd/6edc1fcea5d097455fdeafd651c42836958d7cf90c4951bb40e2a9128a3d/cryptography-51.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:53abe5f651e5413469c7b67dc4ee0a39b856c63474d0600feb7df17dcd786235", size = 5010142, upload-time = "2026-12-02T00:09:20.092Z" }, + { url = "https://files.pythonhosted.org/packages/54/10/f7a36489714482481b3d699372f5f965a3a8052efc3ef90c438773f26b83/cryptography-51.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d44b24206285d3dd974b72a46656a2d396bc209695df22146771540ff16ecc10", size = 5196080, upload-time = "2026-12-02T00:09:21.742Z" }, + { url = "https://files.pythonhosted.org/packages/d4/2b/8ef9a72f0285316ba55b7d001e678c9974ce052f5c1250c3d3f75fb22190/cryptography-51.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:2ba0ff8bcdc3f3da7440568ae98ebd9ca66047ffc0d9d690b4caf9faa9d8154f", size = 3969321, upload-time = "2026-12-02T00:09:23.424Z" }, + { url = "https://files.pythonhosted.org/packages/4b/d0/285a35ad7b9b41c099bc8cd9c5f188b36e8b35e6a0e6ba021ba30669f2ce/cryptography-51.0.0-cp311-abi3-win_arm64.whl", hash = "sha256:ea66d4ae1199830d75f9a0a53ae019b923d41a8822a3f93949cac46b041f5dfa", size = 3468254, upload-time = "2026-12-02T00:09:25.345Z" }, + { url = "https://files.pythonhosted.org/packages/7d/a9/46e5842863de275c4d37c3230c7abb973b7437bbd83d268fc6a2cccdc02f/cryptography-51.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6486d026e6ca12fa9908849e82b48485d2ef7506bc5a6f3f588a334f318831b9", size = 4022406, upload-time = "2026-12-02T00:09:27.017Z" }, + { url = "https://files.pythonhosted.org/packages/de/51/675af2102f44a58b8dfae32b5590cb99cf9a6e9b9ebc73cb82d596c80c19/cryptography-51.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f709e56f2f734f5b636f7bee7142a1c0028f2330ec851d38dc283ed618f2c873", size = 4857651, upload-time = "2026-12-02T00:09:28.629Z" }, + { url = "https://files.pythonhosted.org/packages/12/3c/5364dad6d888614cb3e31ffaff2f9be6dcad9e05a98649187dcf0cb07956/cryptography-51.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:03831c5b3f75173083478bf02b4c478e3c9df14768d85bd1502bf5f8475cb989", size = 4876414, upload-time = "2026-12-02T00:09:30.272Z" }, + { url = "https://files.pythonhosted.org/packages/41/8b/78e841fc22cb5d08891b32881949b01f6e675134f8e5729eb8408e38a3a5/cryptography-51.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:3d2573b7f3ff3d26d5ea1a6dc2d856f759d5a5a61d584d28b388cb35305b2a99", size = 4864612, upload-time = "2026-12-02T00:09:32.096Z" }, + { url = "https://files.pythonhosted.org/packages/61/85/0179e31ff5ea59578fa9b26d7f482f2c6b94c694854545f8b9ff0e35604c/cryptography-51.0.0-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:a7ca779c55fecaf4bd19da6244b547f1f890f33b099d409975b9428a00951f77", size = 5508331, upload-time = "2026-12-02T00:09:33.931Z" }, + { url = "https://files.pythonhosted.org/packages/fb/b1/d6d02d8c3f9004db38be790212277bc685ac42da55950a630e712b7842d4/cryptography-51.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:febadd893784b9d2039eeda1454424775927a5b0b0615f9230c0b0fda08405ca", size = 4913659, upload-time = "2026-12-02T00:09:35.732Z" }, + { url = "https://files.pythonhosted.org/packages/b2/d5/ef9e63fc9c559872514a0048e1bc0545f784de306b902246104ca88a7234/cryptography-51.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:58d983eeb5813ada63995aa492d03e74e3529532397c4eec6919b8976107f62e", size = 4515869, upload-time = "2026-12-02T00:09:37.62Z" }, + { url = "https://files.pythonhosted.org/packages/4d/aa/f304708b1ff130d8b2773fdfdce6b965b4b9e613feb42b701b278936626e/cryptography-51.0.0-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:319bd6145cb7b91648cd9f928d11316ede0b233abed955de058d844436e6693b", size = 4864326, upload-time = "2026-12-02T00:09:39.569Z" }, + { url = "https://files.pythonhosted.org/packages/6c/dc/81bd3e2b41778f2ea2a3522fcb1545bed24c4ec338edbc8b1ba6fedbf988/cryptography-51.0.0-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:62397b8cf8f451775384317245259e571889d1fb386f44e38270bbd785f11514", size = 5462862, upload-time = "2026-12-02T00:09:41.466Z" }, + { url = "https://files.pythonhosted.org/packages/83/ac/f810d69c03f8ac1abddda3128accafaea22d1df7d7e9782793f2c37f13c2/cryptography-51.0.0-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:08c6df8cd70b341716b5e579220faba357fd17679987ac26820592daff36396d", size = 4913304, upload-time = "2026-12-02T00:09:43.314Z" }, + { url = "https://files.pythonhosted.org/packages/4b/24/1f900e7b7b9659af7b774d589af32c590d172b75efea84f293ee5d391ae2/cryptography-51.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:76efc1321741ca418fde630ed3403e281b286db6ecaccf74b5f84bb6b462a57d", size = 4998491, upload-time = "2026-12-02T00:09:45.404Z" }, + { url = "https://files.pythonhosted.org/packages/89/b4/f4e47b9cbd82025c743ecdca616d92e17a3b173f4abf6929980a34e6d7b2/cryptography-51.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:fd40a5dd73f51d1e9ffb9dde628ea03390b184ab13189cd48f1c97299ae9f9be", size = 5189799, upload-time = "2026-12-02T00:09:47.087Z" }, + { url = "https://files.pythonhosted.org/packages/2e/53/67dbe75db97f667dd2dbe6c433b43e21fa5be33f1f6c2e64d3d77a13bfbd/cryptography-51.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d25a5503a318d2170fed51052eff2ecb370d93be02e9ce76b851017461bfd359", size = 3946734, upload-time = "2026-12-02T00:09:48.774Z" }, + { url = "https://files.pythonhosted.org/packages/f0/eb/6ca9f65a03470e971afaf6726c6fd7e120d5e9b1bc7e9ef21d0ece7c71b6/cryptography-51.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:a07a2e5d26fc430e61013026a98d72025cb84354ead9f28302232ecc5facb946", size = 3450313, upload-time = "2026-12-02T00:09:50.358Z" }, + { url = "https://files.pythonhosted.org/packages/49/fe/e14b0750ad1e9fed3a982b98eb21fa86dcb29d777f3b368d59bbaa018d3c/cryptography-51.0.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:f8434b57c5dcca187a0421e271ebd51ac0df08f463bc8588c91edf289880357b", size = 4269446, upload-time = "2026-12-02T00:09:52.246Z" }, + { url = "https://files.pythonhosted.org/packages/95/69/2b446d638fc09b84298172d1667298b4ff9a09b6901dc3efc43779c3ed4f/cryptography-51.0.0-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:22442939a9710f178a80b08f7c16f18528937c9ab4f937a5c71af1fb462a954b", size = 5103265, upload-time = "2026-12-02T00:09:54.216Z" }, + { url = "https://files.pythonhosted.org/packages/25/ab/442e30fc3eee0b8fb8d323b4eb4fdf27b18624adf379b44d85d264583d7c/cryptography-51.0.0-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:71d2dc15b4ed9b29e432fde509cafb03787cfeb04119dc1053e7af1ba6ba85c2", size = 5147030, upload-time = "2026-12-02T00:09:56.429Z" }, + { url = "https://files.pythonhosted.org/packages/75/c3/78843a4ad71ce89480588c2a87cc07fe45240af864afa5d5072180252d34/cryptography-51.0.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl", hash = "sha256:aa8b383bce542756f53b30129531061bf235879e8d2b62e916168865a530070e", size = 5108978, upload-time = "2026-12-02T00:09:58.4Z" }, + { url = "https://files.pythonhosted.org/packages/6a/89/05deccf47e8b16a6145a667d6a375d8cba8276776b5eb825b89cae678262/cryptography-51.0.0-cp315-abi3.abi3t-manylinux_2_28_ppc64le.whl", hash = "sha256:7a989952cf8699bd290574e12e0c743b7d3ddafcd30d6d040f22ecad4c16f3bd", size = 5726554, upload-time = "2026-12-02T00:10:00.42Z" }, + { url = "https://files.pythonhosted.org/packages/26/76/71ec30c28ab7931485dc08c8c84ad48cad9778791e92b733d1bff2dfe40f/cryptography-51.0.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl", hash = "sha256:737415559b4dcd89487e84d3bf1960e80c9d5f4a0b7bf565d82cf2658762c499", size = 5182712, upload-time = "2026-12-02T00:10:02.582Z" }, + { url = "https://files.pythonhosted.org/packages/22/72/e7da39cba84ae7fedfffec4689721f820b103083e5102e5516b06f5c9ad2/cryptography-51.0.0-cp315-abi3.abi3t-manylinux_2_31_armv7l.whl", hash = "sha256:30e3a43bc2e8365d9674ad4259ae4d8921f81e8a8e6a8d31b73118a3f4abbe21", size = 4804261, upload-time = "2026-12-02T00:10:04.619Z" }, + { url = "https://files.pythonhosted.org/packages/20/c7/799fd85eb261d185adcd55749d3b4482420c820682f85f719ee74fcb90bf/cryptography-51.0.0-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl", hash = "sha256:fcaa9b98387a833007393c001d9700111350e923585c791f2bf49d3fe666981c", size = 5108803, upload-time = "2026-12-02T00:10:06.314Z" }, + { url = "https://files.pythonhosted.org/packages/00/77/93746eaa1e113d54d334b48afad0581cd71cb70096730f7a41c93a0a883c/cryptography-51.0.0-cp315-abi3.abi3t-manylinux_2_34_ppc64le.whl", hash = "sha256:9d9e753e740d4435d19fc16411acd4b0d1f5318773b5e4ce03bbf1ce11aa42e3", size = 5679707, upload-time = "2026-12-02T00:10:08.303Z" }, + { url = "https://files.pythonhosted.org/packages/05/d6/74277e1bfdf5d4f8947f86a40c199424eb9b3015e93e81a1f1fab9c5f31f/cryptography-51.0.0-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl", hash = "sha256:70963ef18bb8e87c1db79ec86f5e15a72a0fd2487f1cb55341f7e5b9a3e81656", size = 5182487, upload-time = "2026-12-02T00:10:10.013Z" }, + { url = "https://files.pythonhosted.org/packages/58/86/b4edcc9e5b7f50e000c81dedfde8eb1fc436e87a028447992978c14d5466/cryptography-51.0.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:12a73c2270a45e622c35426c9c9886b4d923e249da38e8236e55d4021e79f5e8", size = 5247190, upload-time = "2026-12-02T00:10:12.06Z" }, + { url = "https://files.pythonhosted.org/packages/3a/4b/5f25180038a3146f34e016c721c1fd51213b79f0894bb5ab6a03b68a27d9/cryptography-51.0.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:25d1c32715cdd1580e981916c7ea59609b3f107796813377b9febfff8d9355cb", size = 5465758, upload-time = "2026-12-02T00:10:13.8Z" }, + { url = "https://files.pythonhosted.org/packages/e8/79/6692a68ec4e201b3f92a84907c2943a395f37ed8b89c83576ed7e30d1dc7/cryptography-51.0.0-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:4476bb2a35b4d803d91fd0744db900db19860d8cabe3027ba166a2dbef00ef9c", size = 4297547, upload-time = "2026-12-02T00:10:15.437Z" }, + { url = "https://files.pythonhosted.org/packages/cd/2b/44fd2b5c3fbd68d891453c79de8cf26aa3ca1696d7c5573cbbe4f5e2f12a/cryptography-51.0.0-cp315-abi3.abi3t-win_arm64.whl", hash = "sha256:46073c86a52cf41af1053805513879cc0d045a50d9e17b10cd59e28a9291360d", size = 3750790, upload-time = "2026-12-02T00:10:17.746Z" }, + { url = "https://files.pythonhosted.org/packages/53/39/a40e1ab4ad502d2fe43db087dada1f7b299c94e513cbe8d1238ce269473b/cryptography-51.0.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:d517635b914155d942115e8561a6fcabfd3f7e1c729218014d8b48e74d23fbca", size = 4065365, upload-time = "2026-12-02T00:10:19.478Z" }, + { url = "https://files.pythonhosted.org/packages/19/db/61a96ee5047f52cb38f5cf13f6095ba8378eedd83b82986efa6f22c53f44/cryptography-51.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cf3337d021cb846fbe5aee10d215c586bf519990f0a81f014c06eda11d9ffbf7", size = 4895018, upload-time = "2026-12-02T00:10:21.213Z" }, + { url = "https://files.pythonhosted.org/packages/4f/5e/8772f15797fd6803f88bc0501d98f15b24fad596ad634b713a489444a0ef/cryptography-51.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:eef8e1b3a6b787fbc128545cf805d9bdbd6cf5e36eb0a77e64b588843cd4b386", size = 4916795, upload-time = "2026-12-02T00:10:23.48Z" }, + { url = "https://files.pythonhosted.org/packages/82/b9/902a85a22f721814d035d6c80cae356d5c2a571bff973853910efa39371e/cryptography-51.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:328c29e3a8f5666ab36c117292387caa9826444adcc0092404b1e98e37824121", size = 4902002, upload-time = "2026-12-02T00:10:25.302Z" }, + { url = "https://files.pythonhosted.org/packages/1c/9d/125754e3fd004f4b8c30757d9d7dbf5aaaf3bc58ae97b71f60e0eb43dd42/cryptography-51.0.0-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:82514ea9b5e16715c8c1c758170b691ba36ecb4224088b9f6e85acf4f89ca690", size = 5552336, upload-time = "2026-12-02T00:10:27.048Z" }, + { url = "https://files.pythonhosted.org/packages/52/8b/8adf58690beb458fa88ba83d3bf3b2a07ca55a74c9de4a787185ddce3f8a/cryptography-51.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:d9773a19c57126d255a7fa3ca00138e2cc829fbfa3e69b1b268a32bfefa4999b", size = 4952897, upload-time = "2026-12-02T00:10:28.876Z" }, + { url = "https://files.pythonhosted.org/packages/1f/19/28011a2fbf5a1f2d30d976e4999bab5251a906f0422e18ca5bccadc6f7e8/cryptography-51.0.0-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:474dc22c8ebf7eb1c7fa3a5ac64e459e830301de37d63838e03f7c6e488dde68", size = 4561893, upload-time = "2026-12-02T00:10:30.539Z" }, + { url = "https://files.pythonhosted.org/packages/04/fb/c01995396c54246a1e24c1520e4ea1410c0d235aaa7176aaf8ddc5d44923/cryptography-51.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:85f1a7e52e11eb4c6080862c1e9585b90b55f065abe3e72ac8096fdc74a543a0", size = 4901593, upload-time = "2026-12-02T00:10:32.488Z" }, + { url = "https://files.pythonhosted.org/packages/61/4c/e2a96c8d3c27f06937d885f77c21a4c10fd1168006661af0fff2a8b96480/cryptography-51.0.0-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:3dd1512019d97b817b7c6f1ca30e9b23ac75c23485057c00388ad5fca9a903a2", size = 5505564, upload-time = "2026-12-02T00:10:34.303Z" }, + { url = "https://files.pythonhosted.org/packages/8e/ce/34de3a7979ea6731d607c5d786a4aea8e8926a13208ef149d0696dd907b0/cryptography-51.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:755418d59e38def1d63670a59bacb7316b51fa061e0213c4d6111779f5a79ec1", size = 4952743, upload-time = "2026-12-02T00:10:36.092Z" }, + { url = "https://files.pythonhosted.org/packages/1d/41/a023ddc5f0578156e21cf6de822b2bad3b1afd659727271cc5e9a1982442/cryptography-51.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:a1c141af084c6db07111b95bd923e41176888ed190310b2d71d725dd78605e54", size = 5038862, upload-time = "2026-12-02T00:10:37.798Z" }, + { url = "https://files.pythonhosted.org/packages/33/55/a9844617de84a4d4f039855382eae115a8bde341f32aba2e663c37668240/cryptography-51.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:929ff8f2db503e280c3bc051deb6c191cd16a37bcf4389f8535ed8e663fca062", size = 5227481, upload-time = "2026-12-02T00:10:39.446Z" }, + { url = "https://files.pythonhosted.org/packages/23/18/48626670443c0cef54923ff5a6175a1a10c6a4bd19d4125d06580c1aa440/cryptography-51.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:16ac4f6d99bc5d1c5f21c37414b0c2feedc0fc6db8c8121f58a14941b8796e28", size = 3998403, upload-time = "2026-12-02T00:10:41.632Z" }, + { url = "https://files.pythonhosted.org/packages/11/bb/55149b07201b3be715b637fe8eeb82aa2449971a7f58f2ba1cc5b55925c9/cryptography-51.0.0-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:3898e3430c0dcdaae7baa136c9c9c309db4b98dd6113fe4284518285a0fe13d0", size = 3980676, upload-time = "2026-12-02T00:10:43.481Z" }, + { url = "https://files.pythonhosted.org/packages/ba/28/d1e12ec633ca28ad425b3efcedf65f43fecb06a47b13ddda27fbf03c0b06/cryptography-51.0.0-pp312-pypy312_pp80-manylinux_2_28_aarch64.whl", hash = "sha256:7c46e943c80e7ece7a5820b282d75173ae14a08e809e5cd3e5fdaa86c4c58fcb", size = 4839671, upload-time = "2026-12-02T00:10:45.096Z" }, + { url = "https://files.pythonhosted.org/packages/4f/cd/58c052d375322c5885ae29480857814ddf137fbf02570beaa970a86f68c3/cryptography-51.0.0-pp312-pypy312_pp80-manylinux_2_28_x86_64.whl", hash = "sha256:d8fff3b8bc172b64e02ece0d06afb10fd998edb1f3d9e07c44fcfbd634c985fd", size = 4878277, upload-time = "2026-12-02T00:10:46.662Z" }, + { url = "https://files.pythonhosted.org/packages/8e/6c/78738fb5b5cba35e4de4b8c579ea28063ff6c60204d7102541e0193b5845/cryptography-51.0.0-pp312-pypy312_pp80-manylinux_2_34_aarch64.whl", hash = "sha256:ceab773e137cf710445de136cd4ac3f5befdd8bc88d11e109b2a59aad7c581ab", size = 4839400, upload-time = "2026-12-02T00:10:48.295Z" }, + { url = "https://files.pythonhosted.org/packages/a6/1c/c109bb1e931addb238846221c2c3a33aa058f7e909b1e59c822f4825de8e/cryptography-51.0.0-pp312-pypy312_pp80-manylinux_2_34_x86_64.whl", hash = "sha256:973d0073dfce49d4dfa13cec33bc3d01d771743ce8753822152f5b8c1e8350d4", size = 4878506, upload-time = "2026-12-02T00:10:50.257Z" }, + { url = "https://files.pythonhosted.org/packages/45/8f/32c5135592c1d4e645e55827ff0f7420f83c94ac7081c1c714e449de7d7a/cryptography-51.0.0-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:0078bf2dd3721c224299553d04cb6655ce80618346911c22bf98dab8e84aeaf2", size = 3930780, upload-time = "2026-12-02T00:10:51.942Z" }, +] + [[package]] name = "docutils" version = "0.21.2" @@ -598,7 +784,8 @@ name = "docutils" version = "0.22.4" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.15'", + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.15' and platform_python_implementation == 'PyPy'", "python_full_version >= '3.13' and python_full_version < '3.15'", "python_full_version == '3.12.*'", "python_full_version >= '3.11.5' and python_full_version < '3.12'", @@ -669,7 +856,7 @@ wheels = [ [[package]] name = "impit" -version = "0.15.3" +version = "0.15.4" source = { editable = "." } [package.dev-dependencies] @@ -683,6 +870,7 @@ dev = [ { name = "pytest-xdist" }, { name = "ruff" }, { name = "setuptools" }, + { name = "trustme" }, ] docs = [ { name = "furo" }, @@ -708,6 +896,7 @@ dev = [ { name = "pytest-xdist" }, { name = "ruff" }, { name = "setuptools" }, + { name = "trustme", specifier = ">=1.2.1" }, ] docs = [ { name = "furo" }, @@ -887,7 +1076,8 @@ name = "markdown-it-py" version = "4.2.0" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.15'", + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.15' and platform_python_implementation == 'PyPy'", "python_full_version >= '3.13' and python_full_version < '3.15'", "python_full_version == '3.12.*'", "python_full_version >= '3.11.5' and python_full_version < '3.12'", @@ -1167,7 +1357,8 @@ name = "myst-parser" version = "5.1.0" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.15'", + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.15' and platform_python_implementation == 'PyPy'", "python_full_version >= '3.13' and python_full_version < '3.15'", "python_full_version == '3.12.*'", "python_full_version >= '3.11.5' and python_full_version < '3.12'", @@ -1223,6 +1414,34 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d4/c6/673a10a729061d2594b85aedd7dd2e470db4d54b12d4f95a306353bb2967/pproxy-2.7.9-py3-none-any.whl", hash = "sha256:a073d02616a47c43e1d20a547918c307dbda598c6d53869b165025f3cfe58e80", size = 42842, upload-time = "2024-01-16T11:33:35.286Z" }, ] +[[package]] +name = "pycparser" +version = "3.11" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/da/a8/c5fdbeee588bb8ada9458774f43adf1bdd30bd59157055142183e769a024/pycparser-3.11.tar.gz", hash = "sha256:d875f09c3507d00e1aba0eecc6dcadc1352f30fff09dc6bff2f1c2935e97c2bc", size = 113796, upload-time = "2026-10-09T12:56:59.539Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/90/11/0e6f11117525ff0eec40ebac3d313376f102df93ca44ad9e893ee85e4f89/pycparser-3.11-py3-none-any.whl", hash = "sha256:51d5a8ba2be0bbe440b99d2112604c95bbbc3c2748a64260186c541e1729cd80", size = 51178, upload-time = "2026-10-09T12:56:58.131Z" }, +] + +[[package]] +name = "pycparser" +version = "3.12" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.13' and python_full_version < '3.15'", + "python_full_version == '3.12.*'", + "python_full_version >= '3.11.5' and python_full_version < '3.12'", + "python_full_version >= '3.11' and python_full_version < '3.11.5'", +] +sdist = { url = "https://files.pythonhosted.org/packages/cb/27/eeb9f307bf07060f3d9f9aa0fb8c15b01bdfded0a941e4b2719c7f94cacd/pycparser-3.12.tar.gz", hash = "sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6", size = 158785, upload-time = "2026-10-22T13:40:03.56Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b6/ae/315bbeee126a769cbde43cf4908acb4b40408d8bf8bbf334dd7368d8dadf/pycparser-3.12-py3-none-any.whl", hash = "sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e", size = 62600, upload-time = "2026-10-22T13:40:02.021Z" }, +] + [[package]] name = "pygments" version = "2.21.0" @@ -1454,7 +1673,8 @@ name = "soupsieve" version = "4.0.1" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.15'", + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.15' and platform_python_implementation == 'PyPy'", "python_full_version >= '3.13' and python_full_version < '3.15'", "python_full_version == '3.12.*'", "python_full_version >= '3.11.5' and python_full_version < '3.12'", @@ -1563,7 +1783,8 @@ name = "sphinx" version = "9.2.0" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.15'", + "python_full_version >= '3.15' and platform_python_implementation != 'PyPy'", + "python_full_version >= '3.15' and platform_python_implementation == 'PyPy'", "python_full_version >= '3.13' and python_full_version < '3.15'", ] dependencies = [ @@ -1742,6 +1963,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" }, ] +[[package]] +name = "trustme" +version = "1.2.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cryptography" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/4b/c5/931476f4cf1cd9e736f32651005078061a50dc164a2569fb874e00eb2786/trustme-1.2.1.tar.gz", hash = "sha256:6528ba2bbc7f2db41f33825c8dd13e3e3eb9d334ba0f909713c8c3139f4ae47f", size = 26844, upload-time = "2025-01-02T01:55:32.632Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b5/f3/c34dbabf6da5eda56fe923226769d40e11806952cd7f46655dd06e10f018/trustme-1.2.1-py3-none-any.whl", hash = "sha256:d768e5fc57c86dfc5ec9365102e9b092541cd6954b35d8c1eea01a84f35a762a", size = 16530, upload-time = "2025-01-02T01:55:30.181Z" }, +] + [[package]] name = "typing-extensions" version = "4.16.0"