Beispiel #1
0
 def setUp(self):
     self.tlsutil = TlsConnectionHelper()
     # todo iterate server implementations
     # self.tls_server = PythonTlsServer(args=(("127.0.0.1", 8443),
     #                                        os.path.join(basedir,"./tests/files/openssl_1_0_1_f_server.pem")))
     self.tls_server = OpenSslServer(args=(("127.0.0.1", 8443),
                                           os.path.join(basedir,"./tests/files/openssl_1_0_1_f_server.pem"),
                                           os.path.join(basedir,"./tests/files/dsa_server.pem")))
     # self.tls_server = JavaTlsServer(args=(("localhost", 8443),))
     wait_for_server(self.tls_server.bind)
Beispiel #2
0
 def setUp(self):
     self.bind = BIND
     wait_for_bind_to_become_ready(self.bind)
     self.tls_server = OpenSslServer(args=(self.bind, SERVER_PEM))
     wait_for_server(self.tls_server.bind)