monkeyWie / proxyee

HTTP proxy server,support HTTPS&websocket.MITM impl,intercept and tamper HTTPS traffic.
MIT License
1.52k stars 572 forks source link

如何选择性的站点走证书吗? #187

Open bowmansir opened 2 years ago

bowmansir commented 2 years ago

使用的时候发现,大部分 https 站点正常, 但会有个别的 https 无法响应,返回的 400 请求,所以想问下如何选择性的走证书,打扰了

monkeyWie commented 2 years ago

这个可以在客户端设置规则过滤吧,服务器这边目前不支持

bowmansir commented 2 years ago

那有些网站的 https 直接报 404 错误这能解决吗 例如 https://weixin110.qq.com

monkeyWie commented 2 years ago

@bowmansir 启用了https解密吗,还是普通的http代理服务

bowmansir commented 2 years ago

@bowmansir 启用了https解密吗,还是普通的http代理服务

启用了 https 解密的

monkeyWie commented 2 years ago

@bowmansir 我这边测试没有404呀,就用的这个测试代码:https://github.com/monkeyWie/proxyee/blob/master/src/test/java/com/github/monkeywie/proxyee/HandelSslHttpProxyServer.java

Cricin commented 1 year ago

我也有这个需求,只想抓特定host的https,HttpProxyServerConfig#setHandleSsl(boolean)的控制粒度太粗了,作者是否可以加一个接口进去呢,让调用方决定是否对特定host启用https解密,全部https都解密一遍对于我来说是没有必要的