Comments (7)
无法与客户端建立 TLS 连接,大概率因为客户端不信任证书。
- 检查操作系统或浏览器是否信任 Good-MITM 证书
- 检查是否有 SSL Pinning
from good-mitm.
使用拦截时无法对http进行访问
from good-mitm.
使用拦截时无法对http进行访问
请提供更详细的信息
from good-mitm.
在服务器使用证书拦截时,http链接无法访问,https链接可以访问
日志如下
[2022-09-21T09:08:47Z INFO good_mitm] CA Private key use: ca/private.key
[2022-09-21T09:08:47Z INFO good_mitm] CA Certificate use: ca/cert.crt
[2022-09-21T09:08:47Z INFO good_mitm] Http Proxy listen on: http://127.0.0.1:34567
[2022-09-21T09:10:11Z INFO good_mitm_rule] [Redirect] https://baidu.com.com/ -> http://xxx.xxx.xxx.xxx
[2022-09-21T09:10:16Z INFO good_mitm_rule] [Redirect] https://baidu.com.com/ -> http://xxx.xxx.xxx.xxx
thread 'tokio-runtime-worker' panicked at 'Failed to establish TLS connection with client: Custom { kind: InvalidData, error: CorruptMessage }', /project/crates/core/src/mitm.rs:142:30
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
[2022-09-21T09:28:14Z ERROR rustls::conn] TLS alert received: AlertMessagePayload {
level: Fatal,
description: CertificateUnknown,
}
thread 'tokio-runtime-worker' panicked at 'Failed to establish TLS connection with client: Custom { kind: InvalidData, error: AlertReceived(CertificateUnknown) }', /project/crates/core/src/mitm.rs:142:30
[2022-09-21T09:28:20Z INFO good_mitm_rule] [Redirect] https://baidu.com.com/ -> http://xxx.xxx.xxx.xxx
[2022-09-21T09:29:16Z ERROR rustls::conn] TLS alert received: AlertMessagePayload {
level: Fatal,
description: CertificateUnknown,
}
thread 'tokio-runtime-worker' panicked at 'Failed to establish TLS connection with client: Custom { kind: InvalidData, error: AlertReceived(CertificateUnknown) }', /project/crates/core/src/mitm.rs:142:30
[2022-09-21T09:29:16Z INFO good_mitm_rule] [Redirect] https://baidu.com.com/ -> http://xxx.xxx.xxx.xxx
[2022-09-21T09:40:48Z ERROR rustls::conn] TLS alert received: AlertMessagePayload {
level: Fatal,
description: CertificateUnknown,
}
thread 'tokio-runtime-worker' panicked at 'Failed to establish TLS connection with client: Custom { kind: InvalidData, error: AlertReceived(CertificateUnknown) }', /project/crates/core/src/mitm.rs:142:30
[2022-09-21T09:40:48Z INFO good_mitm_rule] [Redirect] https://baidu.com.com/ -> http://xxx.xxx.xxx.xxx
[2022-09-21T09:47:17Z ERROR rustls::conn] TLS alert received: AlertMessagePayload {
level: Fatal,
description: CertificateUnknown,
}
thread 'tokio-runtime-worker' panicked at 'Failed to establish TLS connection with client: Custom { kind: InvalidData, error: AlertReceived(CertificateUnknown) }', /project/crates/core/src/mitm.rs:142:30
[2022-09-21T09:47:17Z INFO good_mitm_rule] [Redirect] https://baidu.com.com/ -> http://xxx.xxx.xxx.xxx
[2022-09-21T09:47:25Z ERROR rustls::conn] TLS alert received: AlertMessagePayload {
level: Fatal,
description: CertificateUnknown,
}
thread 'tokio-runtime-worker' panicked at 'Failed to establish TLS connection with client: Custom { kind: InvalidData, error: AlertReceived(CertificateUnknown) }', /project/crates/core/src/mitm.rs:142:30
from good-mitm.
请附上你的规则文件,日志使用源码格式
from good-mitm.
- name: "reject CSDN"
filter:
- domain-keyword: 'csdn'
- domain-keyword: 'hao123'
- domain-keyword: 'cctv'
action:
redirect: "https://baidu.com"
- name: "reject youtube.com"
filter:
- domain-keyword: 'youtube'
action:
redirect: "http://xxx.xxx.xxx.xxx"
规则大概是这样的
日志文件在哪看呢
from good-mitm.
无法复现,测试无任何问题,请自行检查
from good-mitm.
Related Issues (19)
- 如何安装
- 增加上级代理功能 HOT 3
- 增加 add header 和 remove header 的功能 HOT 1
- 配置文件重载的功能 HOT 1
- 父代理不支持 https HOT 4
- 安装证书显示./good-mitm: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./good-mitm) HOT 1
- 您好,请教一下 HOT 1
- Well I am not raising issue. But say thanks! HOT 2
- Wish it support transparent proxy HOT 3
- 应该怎么打印出body呢 HOT 3
- 能否增加命令行参数开启在console打印更详细的log HOT 1
- 手机浏览器上没有拦截的网页提示tls错误,不能访问 HOT 1
- 请问为什么Hudsucker里面的example中的ca文件用不了? HOT 2
- 支持代理规则
- [Bug] ERROR good_mitm_core::mitm HOT 9
- [Bug] 用rules/js.yaml的例子启动报错! HOT 13
- Can I use go lang or python for action instead of JavaScript HOT 1
- [Bug] 是否已经失效了? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from good-mitm.