X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-server.git/blobdiff_plain/14cf46b2e06a403c4238b415b2d762e747840d35..70b6236aa037ef3fd1c34cfef3454ec092976079:/code/vncproxy.py?ds=sidebyside diff --git a/code/vncproxy.py b/code/vncproxy.py old mode 100644 new mode 100755 index 06c1c79..c40570d --- a/code/vncproxy.py +++ b/code/vncproxy.py @@ -1,7 +1,12 @@ #! /usr/bin/python -from twisted.internet import reactor +from twisted.internet import reactor, ssl import vncexternalauth +sslContext = ssl.DefaultOpenSSLContextFactory( + 'vncproxykey.pem', + 'vncproxy.crt', +) + if '__main__' == __name__: - reactor.listenTCP(10003,vncexternalauth.VNCAuthFactory("./vncauth.log", "localhost")) + reactor.listenSSL(10003,vncexternalauth.VNCAuthFactory("localhost"), contextFactory=sslContext) reactor.run()