简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM