Move VNC server certs into /usr/share/sipb-xen-vnc-server
[invirt/packages/invirt-vnc-server.git] / code / vncproxy.py
1 #! /usr/bin/python
2 from twisted.internet import reactor, ssl
3 import vncexternalauth
4
5 sslContext = ssl.DefaultOpenSSLContextFactory(
6         '/usr/share/sipb-xen-vnc-server/vncproxykey.pem',
7         '/usr/share/sipb-xen-vnc-server/vncproxy.crt',
8 )
9
10 if '__main__' == __name__:
11     reactor.listenSSL(10003,vncexternalauth.VNCAuthFactory("localhost"), contextFactory=sslContext)
12     reactor.run()