mirror of
https://github.com/hanzoai/cli.git
synced 2026-11-23 04:55:12 +00:00
reqwest with rustls-tls trusts only Mozilla's set, so a machine whose egress re-signs TLS (a corporate proxy, a sandbox MITM) fails every call with an unknown-issuer error even though the machine itself trusts its own CA. tls_builder keeps the Mozilla set and adds every root the OS store carries, plus every certificate in a PEM bundle HANZO_CA_BUNDLE names when one is set. Added roots are trusted in addition to, never instead of, the built-ins. Wired into Http::default (all generated product commands), the whole sign-in path (iam oauth + device grant), and the ZT controller sign-in. Other ad-hoc reqwest::Client::new sites (monitor, upgrade, vm fetches) still use the plain client and are left as a follow-up.