Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/server.py", line 121, in handle

root_layer()


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/modes/http_proxy.py", line 9, in __call__

layer()


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/tls.py", line 285, in __call__

layer()


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/http1.py", line 103, in __call__

layer()


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/http.py", line 203, in __call__

if not self._process_flow(flow):


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/http.py", line 276, in _process_flow

return self.handle_regular_connect(f)


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/http.py", line 221, in handle_regular_connect

layer()


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/tls.py", line 278, in __call__

self._establish_tls_with_client_and_server()


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/tls.py", line 358, in _establish_tls_with_client_and_server

self._establish_tls_with_server()


 "/usr/lib/python3.6/site-packages/mitmproxy/proxy/protocol/tls.py", line 448, in _establish_tls_with_server

**args


 "/usr/lib/python3.6/site-packages/mitmproxy/connections.py", line 292, in establish_tls

self.convert_to_tls(cert=client_cert, sni=sni, **kwargs)


 "/usr/lib/python3.6/site-packages/mitmproxy/net/tcp.py", line 388, in convert_to_tls

**sslctx_kwargs


 "/usr/lib/python3.6/site-packages/mitmproxy/net/tls.py", line 290, in create_client_context

SSL._lib.X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS | SSL._lib.X509_CHECK_FLAG_NEVER_CHECK_SUBJECT
AttributeError: module 'lib' has no attribute 'X509_CHECK_FLAG_NEVER_CHECK_SUBJECT'

Traceback (most recent call last):


 "/usr/lib/python3.7/socketserver.py", line 720, in __init__

self.handle()


 "/usr/lib/python3.7/http/server.py", line 426, in handle

self.handle_one_request()


 "/usr/lib/python3.7/http/server.py", line 394, in handle_one_request

self.raw_requestline = self.rfile.readline(65537)
AttributeError: 'SETHandler' object has no attribute 'rfile'
