Why is context.set_tmp_ecdh() not defined in pyOpenSSL?

谁都会走 提交于 2019-12-02 15:37:40

问题


I'm trying to implement the answer found at Python Paste SSL server with TLSv1.2 and Forward Secrecy.

How do I use context.set_tmp_ecdh()? That method is not defined on either my Linux or Windows machines. It is in the pyOpenSSL docs, and various examples I've seen. I'm using Python 2.6.6 (or 2.7) and pyOpenSSL v 0.13 (specifically CentOS package pyOpenSSL-0.13.1-2.el6.x86_64.rpm). Is there a specific version or additional dependency, etc. that I'm missing?


回答1:


Support for ecdh was added in pyOpenSSL 0.15, so you can't use it with your installed version of pyOpenSSL.

You'll have to install a newer version.



来源:https://stackoverflow.com/questions/34045618/why-is-context-set-tmp-ecdh-not-defined-in-pyopenssl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!