Lines Matching refs:CERTFILE
26 CERTFILE = None
106 p = ssl._ssl._test_decode_cert(CERTFILE, False)
362 pem = ssl.get_server_certificate(("svn.python.org", 443), ca_certs=CERTFILE)
439 certfile=self.server.certificate,
548 certfile=self.certificate,
605 def __init__(self, conn, certfile):
608 certfile=certfile,
650 def __init__(self, certfile):
651 self.certfile = certfile
661 self.ConnectionHandler(sock_obj, self.certfile)
666 def __init__(self, certfile):
669 self.server = self.EchoServer(certfile)
711 def __init__(self, server_address, RequestHandlerClass, certfile):
713 # we assume the certfile contains both private key and certificate
714 self.certfile = certfile
727 certfile=self.certfile)
773 def __init__(self, certfile):
775 self.RootedHTTPRequestHandler.root = os.path.split(CERTFILE)[0]
777 (HOST, 0), self.RootedHTTPRequestHandler, certfile)
798 def bad_cert_test(certfile):
803 server = ThreadedEchoServer(CERTFILE,
805 cacerts=CERTFILE, chatty=False)
809 certfile=certfile,
821 def server_params_test(certfile, protocol, certreqs, cacertsfile,
829 server = ThreadedEchoServer(certfile,
842 certfile=client_certfile,
890 server_params_test(CERTFILE, server_protocol, certsreqs,
891 CERTFILE, CERTFILE, client_protocol,
956 server_params_test(CERTFILE, ssl.PROTOCOL_TLSv1, ssl.CERT_NONE,
957 CERTFILE, CERTFILE, ssl.PROTOCOL_TLSv1,
964 server = ThreadedEchoServer(CERTFILE,
967 cacerts=CERTFILE,
971 certfile=CERTFILE,
972 ca_certs=CERTFILE,
1068 server = ThreadedEchoServer(CERTFILE,
1122 server = SocketServerHTTPSServer(CERTFILE)
1131 with open(CERTFILE, 'rb') as f:
1136 server.port, os.path.split(CERTFILE)[1])
1156 server_params_test(CERTFILE, ssl.PROTOCOL_SSLv23, ssl.CERT_REQUIRED,
1157 CERTFILE, CERTFILE, ssl.PROTOCOL_SSLv23,
1167 server = AsyncoreEchoServer(CERTFILE)
1193 server = ThreadedEchoServer(CERTFILE,
1196 cacerts=CERTFILE,
1202 certfile=CERTFILE,
1203 ca_certs=CERTFILE,
1343 with ThreadedEchoServer(CERTFILE,
1363 global CERTFILE, SVN_PYTHON_ORG_ROOT_CERT, NOKIACERT
1364 CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir,
1372 if (not os.path.exists(CERTFILE) or