为什么 pyOpenSSL 中没有定义 context.set_tmp_ecdh() ?

2024-02-05

我正在尝试实现在以下位置找到的答案使用 TLSv1.2 和前向保密的 Python Paste SSL 服务器 https://stackoverflow.com/questions/32094145/python-paste-ssl-server-with-tlsv1-2-and-forward-secrecy/32101078?noredirect=1#comment55845438_32101078.

如何使用 context.set_tmp_ecdh()?我的 Linux 或 Windows 机器上都没有定义该方法。它位于 pyOpenSSL 文档中,以及我见过的各种示例。我正在使用Python 2.6.6(或2.7)和pyOpenSSL v 0.13(特别是CentOS包pyOpenSSL-0.13.1-2.el6.x86_64.rpm)。我是否缺少特定版本或其他依赖项等?


对 ecdh 的支持是added https://github.com/pyca/pyopenssl/compare/0.14...0.15#diff-96ea0c9ebccac41295137a319570d7ffR808在 pyOpenSSL 0.15 中,因此您无法将其与已安装的 pyOpenSSL 版本一起使用。

你必须install https://pyopenssl.readthedocs.org/en/latest/install.html较新的版本。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

为什么 pyOpenSSL 中没有定义 context.set_tmp_ecdh() ? 的相关文章

随机推荐