MCPcopy Create free account
hub / github.com/apache/qpid-proton / testSSLExternalSimple

Method testSSLExternalSimple

python/tests/proton_tests/sasl.py:460–482  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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":

Callers

nothing calls this directly

Calls 6

_sslCertpathFunction · 0.85
_sslConnectionFunction · 0.85
_testSaslMechFunction · 0.85
set_credentialsMethod · 0.45
set_trusted_ca_dbMethod · 0.45

Tested by

no test coverage detected