Exemplo n.º 1
0
	def __init__(self, huburl, bind_address = None, port = None, prefix = None, certfile = None, keyfile = None, ca_certs = None, *args, **kw):
		port = port or 8443
		prefix = prefix or "test"
		bind_address = bind_address or "0.0.0.0"
			
		if not certfile:
			certfile = self.datadir / "ptmfrontendcert.pem"
			keyfile = self.datadir / "ptmfrontendkey.pem"
		ca_certs = ca_certs or self.datadir / "cacert.pem"
			
		application = FrontendApplication(huburl = huburl, prefix = prefix)
		SecureThreadingWSGIServer.__init__(self, (bind_address, port), app = application, certfile = certfile, keyfile = keyfile, ca_certs = ca_certs, cert_reqs = CERT_REQUIRED)
Exemplo n.º 2
0
	def get_request(self):
		print("huhuh")
		s = SecureThreadingWSGIServer.get_request(self)
		print("huhuh")
		print s
		print s[0].getpeercert()
		return s