Lines Matching refs:certs_dir
372 def generate_pk12(certs_dir, key, client_cert, username): argument
381 with open(os.path.join(certs_dir, "client.p12"), "wb") as f:
385 def test_mtls_auth(url, certs_dir, use_http2): argument
388 verify=os.path.join(certs_dir, "CA-cert.cer"),
390 os.path.join(certs_dir, "client-cert.pem"),
391 os.path.join(certs_dir, "client-key.pem"),
417 verify=os.path.join(certs_dir, "CA-cert.cer"),
419 os.path.join(certs_dir, "upn-client-cert.pem"),
420 os.path.join(certs_dir, "upn-client-key.pem"),
448 certs_dir, argument
464 generate_pk12(certs_dir, client_key, client_cert, username)
486 with open(os.path.join(certs_dir, "server-cert-only.pem"), "wb") as f:
494 with open(os.path.join(certs_dir, "server-cert.pem"), "wb") as f:
569 certs_dir = os.path.expanduser("~/certs")
573 os.mkdir(certs_dir)
578 ca_cert_filename = os.path.join(certs_dir, "CA-cert.cer")
579 ca_key_filename = os.path.join(certs_dir, "CA-key.pem")
637 with open(os.path.join(certs_dir, "client-key.pem"), "wb") as f:
646 with open(os.path.join(certs_dir, "client-cert-only.pem"), "wb") as f:
656 with open(os.path.join(certs_dir, "client-cert.pem"), "wb") as f:
686 os.path.join(certs_dir, "upn-client-key.pem"), "wb"
695 os.path.join(certs_dir, "upn-client-cert.pem"), "wb"
703 certs_dir,
714 test_mtls_auth(url, certs_dir, use_http2)