source: package_tags/invirt-vnc-server/0.0.6/invirt-vnc-server @ 2596

Last change on this file since 2596 was 1528, checked in by broder, 16 years ago

Actually switch the VNC server to using the new generated VNC cert

  • Property svn:executable set to *
File size: 330 bytes
Line 
1#! /usr/bin/python
2from twisted.internet import reactor, ssl
3from invirt import vnc
4
5sslContext = ssl.DefaultOpenSSLContextFactory(
6        '/etc/invirt/vnc/server.pem',
7        '/etc/invirt/vnc/server.crt',
8)
9
10if '__main__' == __name__:
11    reactor.listenSSL(10003,vnc.VNCAuthFactory("localhost"), contextFactory=sslContext)
12    reactor.run()
Note: See TracBrowser for help on using the repository browser.