AdguardTeam / gomitmproxy

Simple golang mitm proxy implementation
https://adguard.com/
GNU General Public License v3.0
273 stars 53 forks source link

tls first record does not look like a tls handshake #9

Closed ghostlexly closed 2 years ago

ghostlexly commented 2 years ago

Hello,

I ran the examples/mitm/main.go file and there is the logs, nothing working:

2022/01/07 09:50:00 12480#300 [debug] id=100133: failed to read request: tls: first record does not look like a TLS handshake

2022/01/07 09:50:00 12480#299 [debug] id=100133: closing connection due to: tls: first record does not look like a TLS handshake

2022/01/07 09:50:00 12480#22 [debug] id=100134: accepted connection from 192.168.1.26:53754

2022/01/07 09:50:00 12480#308 [debug] id=100134: waiting for request

2022/01/07 09:50:00 12480#301 [debug] id=100134: failed to read request: tls: first record does not look like a TLS handshake

2022/01/07 09:50:00 12480#308 [debug] id=100134: closing connection due to: tls: first record does not look like a TLS handshake

2022/01/07 09:50:00 12480#22 [debug] id=100135: accepted connection from 192.168.1.26:53755

2022/01/07 09:50:00 12480#302 [debug] id=100135: waiting for request

2022/01/07 09:50:00 12480#303 [debug] id=100135: failed to read request: tls: first record does not look like a TLS handshake
ameshkov commented 2 years ago

Note that this example is an "HTTPS" proxy with authentication.

If you're testing it using your browser, I suggest using SwitchyOmega extension to point your browser to the proxy.

Here's how the config should look like: image