Coder Social home page Coder Social logo

Comments (7)

zu1k avatar zu1k commented on September 27, 2024

无法与客户端建立 TLS 连接,大概率因为客户端不信任证书。

  1. 检查操作系统或浏览器是否信任 Good-MITM 证书
  2. 检查是否有 SSL Pinning

from good-mitm.

piokto avatar piokto commented on September 27, 2024

使用拦截时无法对http进行访问

from good-mitm.

zu1k avatar zu1k commented on September 27, 2024

使用拦截时无法对http进行访问

请提供更详细的信息

from good-mitm.

piokto avatar piokto commented on September 27, 2024

在服务器使用证书拦截时,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.

zu1k avatar zu1k commented on September 27, 2024

请附上你的规则文件,日志使用源码格式

from good-mitm.

piokto avatar piokto commented on September 27, 2024
- 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.

zu1k avatar zu1k commented on September 27, 2024

无法复现,测试无任何问题,请自行检查

from good-mitm.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.