go-mitmproxy
go-mitmproxy copied to clipboard
证书错误
为什么我指定了
opts := &proxy.Options{
Addr: ":8080",
StreamLargeBodies: 8024 * 1024 * 5,
SslInsecure: true,
}
启动后还是会报证书错误:
2024/03/14 10:16:18 http: TLS handshake error from [::1]:46348: remote error: tls: bad certificate 2024/03/14 10:16:18 http: TLS handshake error from [::1]:46338: remote error: tls: bad certificate 2024/03/14 10:16:18 http: TLS handshake error from [::1]:46346: remote error: tls: bad certificate 2024/03/14 10:16:18 http: TLS handshake error from [::1]:46354: remote error: tls: bad certificate 2024/03/14 10:16:18 http: TLS handshake error from [::1]:46356: remote error: tls: bad certificate 2024/03/14 10:16:18 http: TLS handshake error from [::1]:46362: remote error: tls: bad certificate 2024/03/14 10:16:19 http: TLS handshake error from [::1]:46376: remote error: tls: bad certificate 2024/03/14 10:16:19 http: TLS handshake error from [::1]:46366: remote error: tls: bad certificate
不论怎样,你还是需要安装生成的证书的
安了也没有生效 就很奇怪
我用原生的mitmproxy就可以成功