try something like this for the server.pem:
http://stackoverflow.com/questions/7165749/open-file-in-a-relative-location-in-python
Quoting Chamila Wijayarathna <cdwijayarat...@gmail.com>:
Hi Roger,
So how can we make this run when running using test.sh?
Thank You!
On Wed, May 28, 2014 at 9:08 PM, Roger Meier <ro...@bufferoverflow.ch>wrote:
Quoting Chamila Wijayarathna <cdwijayarat...@gmail.com>:
Hello all,
I'm trying to run test/py/TestServer.py with SSL. When I ran this, I get
following error.
chamila@chamila-Aspire-5742:~/gsoc/1/thrift/test$ py/TestServer.py
--proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer --ssl
Traceback (most recent call last):
File "py/TestServer.py", line 220, in <module>
transport = TSSLSocket.TSSLServerSocket(host, options.port,
certfile='../keys/server.pem')
File
"py/../../lib/py/build/lib.linux-x86_64-2.7/thrift/
transport/TSSLSocket.py",
line 182, in __init__
self.setCertfile(certfile)
File
"py/../../lib/py/build/lib.linux-x86_64-2.7/thrift/
transport/TSSLSocket.py",
line 195, in setCertfile
raise IOError('No such certfile found: %s' % (certfile))
IOError: No such certfile found: ../keys/server.pem
Any idea on what is wrong here? I have server.pem at test/keys.
execution within
test/py works
test not
=> python testserver needs to know where it is executed
-roger
Thank You!
--
*Chamila Dilshan Wijayarathna,*
SMIEEE, SMIESL,
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa.
--
*Chamila Dilshan Wijayarathna,*
SMIEEE, SMIESL,
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa.