def getSSLContext():
 keyfile = os.path.join(_GAME_DIR, 'server', 'ssl.key')
 certfile = os.path.join(_GAME_DIR, 'server', 'ssl.cert')
 verify_SSL_key_and_cert(keyfile, certfile)
 return twisted_ssl.DefaultOpenSSLContextFactory(keyfile, certfile)

def getSSLContext ( ) : keyfile = os . path . join ( _GAME_DIR , 'server' , 'ssl.key' ) certfile = os . path . join ( _GAME_DIR , 'server' , 'ssl.cert' ) verify_SSL_key_and_cert ( keyfile , certfile ) return twisted_ssl . DefaultOpenSSLContextFactory ( keyfile , certfile )
this is called by the portal when creating the ssl context server-side .