Beispiel #1
0
 def setUp(self):
     self.certs = {b'localhost': (
         test_util.load_pyopenssl_private_key('rsa2048_key.pem'),
         test_util.load_cert('rsa2048_cert.pem'),
     )}
     from acme.standalone import TLSSNI01Server
     self.server = TLSSNI01Server(('localhost', 0), certs=self.certs)
     # pylint: disable=no-member
     self.thread = threading.Thread(target=self.server.serve_forever)
     self.thread.start()
Beispiel #2
0
 def setUp(self):
     self.certs = {
         b'localhost': (
             test_util.load_pyopenssl_private_key('rsa512_key.pem'),
             # pylint: disable=protected-access
             test_util.load_cert('cert.pem')._wrapped),
     }
     from acme.standalone import TLSSNI01Server
     self.server = TLSSNI01Server(("", 0), certs=self.certs)
     # pylint: disable=no-member
     self.thread = threading.Thread(target=self.server.serve_forever)
     self.thread.start()