(self)
| 458 | _testSaslMech(self, mech, clientUser='usr@proton', encrypted=True, authenticated=False) |
| 459 | |
| 460 | def testSSLExternalSimple(self): |
| 461 | if os.name == "nt": |
| 462 | extUser = 'O=Client, CN=127.0.0.1' |
| 463 | else: |
| 464 | extUser = 'O=Client,CN=127.0.0.1' |
| 465 | mech = 'EXTERNAL' |
| 466 | |
| 467 | self.server_domain.set_credentials(_sslCertpath("server-certificate.pem"), |
| 468 | _sslCertpath("server-private-key.pem"), |
| 469 | "server-password") |
| 470 | self.server_domain.set_trusted_ca_db(_sslCertpath("ca-certificate.pem")) |
| 471 | self.server_domain.set_peer_authentication(SSLDomain.VERIFY_PEER, |
| 472 | _sslCertpath("ca-certificate.pem")) |
| 473 | self.client_domain.set_credentials(_sslCertpath("client-certificate.pem"), |
| 474 | _sslCertpath("client-private-key.pem"), |
| 475 | "client-password") |
| 476 | self.client_domain.set_trusted_ca_db(_sslCertpath("ca-certificate.pem")) |
| 477 | self.client_domain.set_peer_authentication(SSLDomain.VERIFY_PEER) |
| 478 | |
| 479 | _sslConnection(self.client_domain, self.t1, self.c1) |
| 480 | _sslConnection(self.server_domain, self.t2, self.c2) |
| 481 | |
| 482 | _testSaslMech(self, mech, clientUser=None, authUser=extUser, encrypted=True) |
| 483 | |
| 484 | def testSSLExternalAuthzid(self): |
| 485 | if os.name == "nt": |
nothing calls this directly
no test coverage detected