#! /usr/bin/python
from twisted.internet import reactor, ssl
from invirt import vnc

sslContext = ssl.DefaultOpenSSLContextFactory(
	'/usr/share/invirt-vnc-server/vncproxykey.pem',
	'/usr/share/invirt-vnc-server/vncproxy.crt',
)

if '__main__' == __name__:
    reactor.listenSSL(10003,vnc.VNCAuthFactory("localhost"), contextFactory=sslContext)
    reactor.run()
