mitmproxy抓https出现502Bad Gateway. unable to get local issuer certificate的解决方法

By | September 13, 2020

502 Bad Gateway. Certificate Verification Error for www.xxxx.com: unable to get local issuer certificate (errno: 20, depth: 0)

想到可能是当前证书不支持,网上找一个最新的cacert.pem替换certifi包(xx\python36\Lib\site-packages\certifi)目录的证书,再次使用可以抓到包了。

参考资料
https://github.com/mitmproxy/mitmproxy/issues/1608
https://curl.haxx.se/docs/caextract.html

Leave a Reply