Red Hat Bugzilla – Bug 188742
Servers written in python using m2crypto for ssl fail.
Last modified: 2007-11-30 17:11:30 EST
Description of problem:
Servers written in python using m2crypto will fail with the following traceback:
Traceback (most recent call last):
File "./echod-iterative.py", line 23, in ?
File "/usr/lib/python2.4/SocketServer.py", line 201, in serve_forever
File "/usr/lib/python2.4/site-packages/M2Crypto/SSL/SSLServer.py", line 31, in
request, client_address = self.get_request()
File "/usr/lib/python2.4/SocketServer.py", line 373, in get_request
File "/usr/lib/python2.4/site-packages/M2Crypto/SSL/Connection.py", line 116,
if not check(self.get_peer_cert(), self.addr):
AttributeError: Connection instance has no attribute 'addr'
This includes the sample echod servers included in the doc directory under
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. cd to /usr/share/docs/m2crypto-0.15/demo/ssl
2. python echod-iterative.py &
3. python echo.py
4. watch traceback
You may have to make a private copy of that directory and edit
echod-iterative.py and echo.py to turn off SSL verification (because the
certificates included in the demo are out of date) in order to get to the traceback.
See traceback above.
echod demo server works with echo client.
This is fixed upstream in svn head and will be fixed in the upcoming 0.16. This
is the svn checkin that fixes the problem:
This patch is also attached.
Created attachment 127666 [details]
Patch to Connection.py in m2crypto to fix problem with servers
m2crypto-0.15-3.2.fc5.1 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.
Thanks for your report.