mitm icon indicating copy to clipboard operation
mitm copied to clipboard

handshake hm.baidu.com:443 remote error: tls: illegal parameter

Open luochaolun opened this issue 6 years ago • 2 comments

handshake hm.baidu.com:443 remote error: tls: illegal parameter

luochaolun avatar Mar 06 '18 01:03 luochaolun

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

Freeaqingme avatar Apr 23 '18 00:04 Freeaqingme

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

evanj avatar Sep 19 '18 16:09 evanj