Cannot validate certificate hostname without SNI
此处通过:
mitmdump -k -p 8081 -s middleware/Save1.py
加上了
- -k == --ssl-insecure
- Do not verify upstream server SSL/TLS certificates
从而规避了:
TlsException('Cannot validate certificate hostname without SNI
的问题。
- 细节详见
- 【已解决】mitmproxy代理报错:Cannot establish TLS with 443 sni None TlsException Cannot validate certificate hostname without SNI
- 【未解决】安卓抓包mitmproxy报错:TlsException SSL handshake Error routines ssl3_get_record wrong version number