/external/python/cpython2/Lib/test/ |
D | test_ssl.py | 41 CERTFILE = data_file("keycert.pem") variable 42 BYTES_CERTFILE = CERTFILE.encode(sys.getfilesystemencoding()) 194 p = ssl._ssl._test_decode_cert(CERTFILE) 358 ssl.wrap_socket, sock, keyfile=CERTFILE) 365 with closing(ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE)) as s: 375 certfile=CERTFILE, keyfile=NONEXISTINGCERT) 562 with closing(ssl.wrap_socket(s, server_side=True, certfile=CERTFILE)) as ss: 572 env["SSL_CERT_FILE"] = CERTFILE 574 self.assertEqual(paths.cafile, CERTFILE) 831 ctx.load_cert_chain(CERTFILE, keyfile=None) [all …]
|
D | test_imaplib.py | 21 CERTFILE = None variable 45 certfile=CERTFILE) 238 global CERTFILE 239 CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir, 241 if not os.path.exists(CERTFILE):
|
D | ssl_servers.py | 17 CERTFILE = os.path.join(here, 'keycert.pem') variable 150 def make_https_server(case, context=None, certfile=CERTFILE, 198 context.load_cert_chain(CERTFILE)
|
D | test_ftplib.py | 271 CERTFILE = os.path.join(os.path.dirname(__file__), "keycert3.pem") variable 282 certfile=CERTFILE, server_side=True, 723 self.assertRaises(ValueError, ftplib.FTP_TLS, keyfile=CERTFILE, 725 self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, 727 self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, 728 keyfile=CERTFILE, context=ctx)
|
D | test_poplib.py | 242 CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir, "keycert.pem") variable 248 self.socket = ssl.wrap_socket(self.socket, certfile=CERTFILE,
|
/external/python/cpython3/Lib/test/ |
D | ssl_servers.py | 17 CERTFILE = os.path.join(here, 'keycert.pem') variable 150 def make_https_server(case, *, context=None, certfile=CERTFILE, 198 context.load_cert_chain(CERTFILE)
|
D | test_ssl.py | 64 CERTFILE = data_file("keycert.pem") variable 65 BYTES_CERTFILE = os.fsencode(CERTFILE) 428 ssl._ssl._test_decode_cert(CERTFILE), 608 ssl.wrap_socket, sock, keyfile=CERTFILE) 615 with ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE) as s: 625 certfile=CERTFILE, keyfile=NONEXISTINGCERT) 879 with test_wrap_socket(s, server_side=True, certfile=CERTFILE) as ss: 897 env["SSL_CERT_FILE"] = CERTFILE 899 self.assertEqual(paths.cafile, CERTFILE) 1295 ctx.load_cert_chain(CERTFILE, keyfile=None) [all …]
|
D | test_poplib.py | 27 CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir, "keycert3.pem") variable 158 context.load_cert_chain(CERTFILE) 421 self.server.port, keyfile=CERTFILE, context=ctx) 423 self.server.port, certfile=CERTFILE, context=ctx) 425 self.server.port, keyfile=CERTFILE, 426 certfile=CERTFILE, context=ctx)
|
D | test_imaplib.py | 24 CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir, "keycert3.pem") variable 98 context.load_cert_chain(CERTFILE) 580 self.imap_class('localhost', 143, certfile=CERTFILE) 1030 ssl_context.load_cert_chain(CERTFILE) 1059 certfile=CERTFILE, ssl_context=self.create_ssl_context()) 1065 keyfile=CERTFILE, ssl_context=self.create_ssl_context())
|
D | test_ftplib.py | 310 CERTFILE = os.path.join(os.path.dirname(__file__), "keycert3.pem") variable 321 context.load_cert_chain(CERTFILE) 947 self.assertRaises(ValueError, ftplib.FTP_TLS, keyfile=CERTFILE, 949 self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, 951 self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, 952 keyfile=CERTFILE, context=ctx)
|