Lines Matching refs:cert
216 self.fail("Peer cert %s shouldn't be here!")
229 # this should succeed because we specify the root cert
426 cert = self.sslconn.getpeercert()
428 sys.stdout.write(" client cert is " + pprint.pformat(cert) + "\n")
431 sys.stdout.write(" cert binary is " + str(len(cert_binary)) + " bytes\n")
819 raise AssertionError("Use of invalid cert should have failed!")
976 cert = s.getpeercert()
977 self.assertTrue(cert, "Can't get peer certificate.")
980 sys.stdout.write(pprint.pformat(cert) + '\n')
982 if 'subject' not in cert:
984 pprint.pformat(cert))
986 not in cert['subject']):
993 """Connecting with an empty cert file"""
1001 """Connecting with a non-existing cert file"""