Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

证书错误 #69

Open
Miracles666 opened this issue Mar 14, 2024 · 3 comments
Open

证书错误 #69

Miracles666 opened this issue Mar 14, 2024 · 3 comments

Comments

@Miracles666
Copy link

为什么我指定了

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

@lqqyt2423
Copy link
Owner

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

@Miracles666
Copy link
Author

安了也没有生效 就很奇怪

@Miracles666
Copy link
Author

我用原生的mitmproxy就可以成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants