monkeyWie / proxyee

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

开启HTTPS,客户端无法正常访问 #133

Closed luyuanwan closed 3 years ago

luyuanwan commented 3 years ago

代码如下


public class HandelSslHttpProxyServer {

    public static void main(String[] args) throws Exception {
        HttpProxyServerConfig config = new HttpProxyServerConfig();
        config.setHandleSsl(true);

        new HttpProxyServer()
                .serverConfig(config)
                .proxyInterceptInitializer(new HttpProxyInterceptInitializer(){
                    public void init(HttpProxyInterceptPipeline pipeline) {
                        pipeline.addLast(new CertDownIntercept());
                    }
                })
                .start(9999);
    }
}

在IOS手机上下载证书并安装,然后打开APP,但是所有访问都是失败的
monkeyWie commented 3 years ago

这种情况多半是APP开启了ssl pinning,需要ROOT绕过去,具体我也没试过。

luyuanwan commented 3 years ago

具体我使用的APP是今日头条和曹操的绿色公务,但是QQ确实可以访问的

luyuanwan commented 3 years ago

好的,多谢指点 @monkeyWie