load cacert path from funtion parameters

This commit is contained in:
2026-06-10 14:25:20 +02:00
parent 0212f5c29e
commit a0dee43a37
+1
View File
@@ -20,6 +20,7 @@ def auth(base_url: str | None, cert_path: str | None) -> str:
# Single call: Kerberos SPNEGO through Apache, which proxies to the DAQ server.
# Apache injects X-Remote-User; the DAQ server reads it from the localhost-proxied request.
url = f"{base_url}/token"
cacert = f"{cert_path}"
try:
token_result = subprocess.run(
['curl', '-s', '--cacert', CACERT,