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

sslContext = ssl.DefaultOpenSSLContextFactory(
	'/etc/invirt/vnc/server.pem',
	'/etc/invirt/vnc/server.crt',
)

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