On Di, 2010-11-02 at 15:31 +0000, Anssi Saari wrote:
The Syncevolution HTTP server setup docs say somewhat cryptically
that
"HTTPS is probably possible by extending the way how Twisted is used
and/or configured." So what actually needs to be done? Has anyone done
any work relating to this?
Someone needs to hack the source code of syncevo-http-server.py, which
no-one has had the time to do.
I expect that the main changes will be in the main() function:
def main():
parser = optparse.OptionParser(usage=usage)
(options, args) = parser.parse_args()
if len(args) != 1:
print "need exactly on URL as command line parameter"
exit(1)
url = urlparse.urlparse(args[0])
root = resource.Resource()
root.putChild(url.path[1:], SyncMLPost(url))
site = server.Site(root)
reactor.listenTCP(url.port, site)
reactor.run()
A new command line argument will be needed to specify the SSL
certificate that the server is meant to use. Then this information must
be passed into Twisted's site instance before running it. No idea how to
do that, but that's only because I haven't looked yet.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.