omjadas / hudsucker

Intercepting HTTP/S proxy
https://crates.io/crates/hudsucker
Apache License 2.0
205 stars 34 forks source link

Seems not work with Proxifier #116

Closed Xerxes-2 closed 2 months ago

Xerxes-2 commented 3 months ago

Tried both on Windows and Mac, for proxying a Electron-based game. The connections are often unstable in both HTTP and WebSocket, and log shows hudsucker: Failed to forward request: client error (Connect) . I have installed the CA as trusted CA and proxy works fine in browser.

omjadas commented 3 months ago

Could you share the code for your HttpHandler and WebSocketHandler?

Xerxes-2 commented 3 months ago

OK, seems not a hudsucker issue. I fixed my code and it runs well on Windows. But for Mac I still face a CA error, always get Failed to establish TLS connection: received fatal alert: UnknownCA, even with the very basic noop.rs example.

omjadas commented 3 months ago

Can you confirm you have installed the CA cert as a trusted root?

Xerxes-2 commented 2 months ago

SIP is blocking me from install the CA into /System/Library/Keychains/SystemRootCertificates.keychain, maybe I should consider disabling it. Anyway, thank you for helping me.