1

我尝试在我的 linux RHEL 7 中使用 Libmproxy,但出现以下异常:

    from libmproxy import controller, proxy
  File "/usr/lib/python2.7/site-packages/libmproxy/proxy/__init__.py", line 1, in <module>
    from .primitives import *
  File "/usr/lib/python2.7/site-packages/libmproxy/proxy/primitives.py", line 2, in <module>
    from netlib import socks, tcp
  File "/usr/lib/python2.7/site-packages/netlib/socks.py", line 5, in <module>
    from . import tcp, utils
  File "/usr/lib/python2.7/site-packages/netlib/tcp.py", line 62, in <module>
    "TLSv1_1": (SSL.TLSv1_1_METHOD, SSL_BASIC_OPTIONS),
AttributeError: 'module' object has no attribute 'TLSv1_1_METHOD'

已经尝试重新安装 mitmproxy、netlib、PyOpenSSL 和 Cryptography。还有其他想法吗?

4

2 回答 2

0

这看起来像是在您的系统上安装了一个非常过时的 OpenSSL 版本。更新 OpenSSL/libssl,你应该没问题。

于 2016-02-12T21:36:50.040 回答
0

It's not your fault. The version of OpenSSL you are using is compiled with TLSv1.1 support removed. It's a bug in mitmproxy that it assumes SSL.TLSv1_1_METHOD is available.

于 2016-11-19T22:16:21.183 回答