omjadas / hudsucker

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

[feature request]: Allow proxy to untrusted SSL certificate websites. #122

Closed axxop closed 2 months ago

axxop commented 2 months ago

Currently, it is not possible to proxy to websites that use untrusted SSL certificates. For example: curl -x http://127.0.0.1:3000 -H 'host: google.com' https://157.240.31.35 -vv -k. When this request goes through hudsucker, it returns a 500 status. I have temporarily solved this issue using a change .

What kind of API implementation do you think would be acceptable?

omjadas commented 2 months ago

This is already possible by providing a custom hyper client using with_client.