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

Mitm does not work on modern OS #15

Open
BOPOHA opened this issue Oct 8, 2021 · 0 comments · May be fixed by #16
Open

Mitm does not work on modern OS #15

BOPOHA opened this issue Oct 8, 2021 · 0 comments · May be fixed by #16

Comments

@BOPOHA
Copy link

BOPOHA commented Oct 8, 2021

reference https://access.redhat.com/articles/3642912

How to reproduce:

curl -x 127.0.0.1:8080 https://google.com/  -ivv
*   Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to google.com:443
> CONNECT google.com:443 HTTP/1.1
> Host: google.com:443
> User-Agent: curl/7.71.1
> Proxy-Connection: Keep-Alive
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< 

* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CONNECT phase completed!
* CONNECT phase completed!
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS alert, bad certificate (554):
* SSL certificate problem: EE certificate key too weak
* Closing connection 0
curl: (60) SSL certificate problem: EE certificate key too weak
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

proxy logs:

2021/10/08 17:15:49 ERR: Connect: 'google.com:443' TLS handshake [local error: tls: bad record MAC]
BOPOHA added a commit to BOPOHA/httpproxy that referenced this issue Oct 8, 2021
@BOPOHA BOPOHA linked a pull request Oct 8, 2021 that will close this issue
BOPOHA added a commit to go-shortcut/httpproxy that referenced this issue Apr 28, 2022
update weak RSA Key size up to 4096; fixes go-httpproxy#15
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

Successfully merging a pull request may close this issue.

1 participant