Skip to content

Commit

Permalink
netauth: default to keys/tls.pem for certificate from config
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Aug 4, 2024
1 parent 2473b8e commit bbd9b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netauth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit bbd9b27

Please sign in to comment.