[pyOpenSSL-Users] TypeError: context must be a Context instance

Martin Danielson martin at rocketblast.com
Mon Mar 2 09:06:45 CET 2015


Getting this error on Windows, Python 2.7.9. Working on other machines,
this is a new environment.

Any idea on how to solve/debug this?

Works without context, tried using a different version of the protocol,
with no success. Not sure how to properly debug this.

Unhandled exception in thread started by <function inner at 0x02EC6130>
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 692, in inner
    passthrough_errors, ssl_context).serve_forever()
  File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 486, in make_se
rver
    passthrough_errors, ssl_context)
  File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 425, in __init_
_
    self.socket = tsafe.Connection(ssl_context, self.socket)
  File "C:\Python27\lib\site-packages\OpenSSL\tsafe.py", line 11, in __init__
    self._ssl_conn = apply(_ssl.Connection, args)
  File "C:\Python27\lib\site-packages\OpenSSL\SSL.py", line 804, in __init__
    raise TypeError("context must be a Context instance")
TypeError: context must be a Context instance



*Martin Danielson*
CEO
Rocket Blast AB

Phone: *+46 (0)72 222 26 44* - Please note that I have a new number, kindly
update your contact details!
E-mail: martin at rocketblast.com
www.rocketblast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pyopenssl-users/attachments/20150302/f04663d0/attachment.html>


More information about the pyopenssl-users mailing list