[viff-devel] [issue62] Proper error message when no certificate present
Thomas Pelle Jakobsen
tracker at viff.dk
Tue Aug 26 14:59:31 PDT 2008
New submission from Thomas Pelle Jakobsen <mas at daimi.au.dk>:
Currently, if one forgets to generate certificates using the
generate-certificates.py script and then runs e.g. the millionaires.py
example
with ssl this is what results:
C:\temp\viff-ff249565fa3a\apps>python millionaires.py player-3.ini
Seeding random generator with random seed 9235
Using SSL
Traceback (most recent call last):
File "millionaires.py", line 150, in <module>
pre_runtime = create_runtime(id, players, 1, options, Toft05Runtime)
File "C:\Python25\Lib\site-packages\viff\runtime.py", line 1619, in
create_runtime
ctx_factory = SSLContextFactory(id)
File "C:\Python25\Lib\site-packages\viff\runtime.py", line 1607, in
__init__
ctx.use_certificate_file('player-%d.cert' % id)
OpenSSL.SSL.Error: [('system library', 'fopen', 'No such file or
directory'), ('BIO routines', 'FILE_CTRL', 'system lib'), ('SSL
routines', 'SSL_CTX_use_certificate_file', 'system lib')]
What the user should see is instead something like this:
Runtime.Error: Couldn't find ssl certificates.
Hint: Run the generate-certificates.py first.
----------
assignedto: mas
messages: 171
nosy: mas, mk
priority: bug
status: unread
title: Proper error message when no certificate present
____________________________________
VIFF Issue Tracker <tracker at viff.dk>
<http://tracker.viff.dk/issue62>
____________________________________
More information about the viff-devel
mailing list