Why is context.set_tmp_ecdh() not defined in pyOpe

2019-03-06 15:22发布

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条回答
唯我独甜
2楼-- · 2019-03-06 15:50

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.

查看更多
登录 后发表回答