Capture SSL Verification Error in the proxy server MITM inline script

I am using the MITM Proxy to capture requests / responses using Python Inline Scripts . In case of certificate verification error, MITM Proxy writes a log line to standard output, for example

127.0.0.1:34390: SSL verification failed for upstream server at depth 0 with error: 18

Is it possible to fix certificate verification errors in the Inline Script function and how? I can only capture HTTP requests and responses in these scripts. If this is not possible with Inline Script, maybe I can do it with libmproxy ?

+4
source share
1 answer

. , mitmproxy . :

def request(context, flow):
    print flow.server_conn.ssl_verification_error
+2

Source: https://habr.com/ru/post/1610665/


All Articles