擅长:python、mysql、java
<p>看看回溯:</p>
<p><code>
File "python2.7/site-packages/twisted/internet/ssl.py", line 113, in cacheContext
ctx = self._contextFactory(self.sslmethod)
File "python2.7/site-packages/OpenSSL/SSL.py", line 600, in __init__
raise ValueError("No such protocol")
ValueError: No such protocol
</code></p>
<p>异常来自OpenSSL包,它是pyOpenSSL的一部分。pyOpenSSL已放弃对SSLv2的支持。您可能可以找到仍然支持SSLv2的旧版本的pyOpenSSL(您可能还需要找到与旧pyOpenSSL兼容的Twisted的旧版本)。在</p>
<p>另一个选择是使用单独的工具(如<code>stunnel</code>)终止SSLv2。在</p>
<p>类似地,您可能需要确保本机OpenSSL库的构建实际上仍然支持SSLv2。最近的版本很可能没有这个特性(原因很明显)。在</p>