fix: Proxy tests don't use custom certificate authority

This commit is contained in:
Laerte Pereira 2024-02-29 06:41:14 -03:00
parent 198f5cf0d4
commit 2169810414
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ from mitmproxy.tools.main import mitmdump
sys.argv[0] = "mitmdump"
sys.exit(mitmdump())
"""
cert_path = Path(__file__).parent.resolve() / "keys" / "mitmproxy-ca.pem"
cert_path = Path(__file__).parent.resolve() / "keys"
self.proc = Popen(
[
sys.executable,
@ -40,8 +40,8 @@ sys.exit(mitmdump())
"0",
"--proxyauth",
f"{self.auth_user}:{self.auth_pass}",
"--certs",
str(cert_path),
"--set",
f"confdir={cert_path}",
"--ssl-insecure",
],
stdout=PIPE,