go-mitmproxy icon indicating copy to clipboard operation
go-mitmproxy copied to clipboard

证书错误

Open Miracles666 opened this issue 11 months ago • 3 comments

为什么我指定了

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

Miracles666 avatar Mar 14 '24 02:03 Miracles666

不论怎样,你还是需要安装生成的证书的

lqqyt2423 avatar Mar 14 '24 04:03 lqqyt2423

安了也没有生效 就很奇怪

Miracles666 avatar Mar 15 '24 05:03 Miracles666

我用原生的mitmproxy就可以成功

Miracles666 avatar Mar 15 '24 05:03 Miracles666