From bbd9b27c2c4e6e932082beafa94a2ed22b2c07c4 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 3 Aug 2024 21:01:42 -0400 Subject: [PATCH] netauth: default to keys/tls.pem for certificate from config --- netauth/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netauth/__init__.py b/netauth/__init__.py index b10738c..399a3cb 100644 --- a/netauth/__init__.py +++ b/netauth/__init__.py @@ -128,7 +128,7 @@ def with_config(cls, path: Path, **kwargs): tls = cfg.get("tls", {}) token = cfg.get("token", {}) - cert = Path(tls.get("certificate")) + cert = Path(tls.get("certificate", "keys/tls.pem")) if not cert.is_absolute(): cert = (path.parent / cert).absolute()