我正在使用MITM Proxy使用 Python Inline Scripts来捕获请求/响应。在证书验证错误的情况下,MITM 代理将日志行写入标准输出,例如
127.0.0.1:34390: SSL verification failed for upstream server at depth 0 with error: 18
是否可以在内联脚本功能中捕获此证书验证错误以及如何捕获?我只能在此脚本中捕获 http 请求和响应。如果内联脚本不可能,也许我可以用libmproxy做到这一点?