mitm
mitm copied to clipboard
handshake hm.baidu.com:443 remote error: tls: illegal parameter
handshake hm.baidu.com:443 remote error: tls: illegal parameter
I had the same issue (but then while connecting with google.com). Didn't research it any further, but using SHA512/RSA certificates rather than ECDA fixed it. PR: https://github.com/kr/mitm/pull/4
The issue in not the certificate algorithm, but rather the curve that is embedded here. The code uses elliptic.P521()
which is not supported by Chrome it appears. Switching it to elliptic.P256()
makes it work for me. Edit this line here: https://github.com/kr/mitm/blob/master/cert.go#L66