]>
git.siccegge.de Git - tooling/letool.git/blob - sicceggetools/acme/settings.py
9 def __init__(self
, path
='config/settings.yaml'):
10 with
open(path
) as invfd
:
11 self
._settings
= yaml
.load(invfd
.read())
14 def use_method(self
, method
, san
, settings
):
15 authmethods
= self
._settings
['authorization']
17 for thismethod
, data
in authmethods
.items():
18 for host
in data
['hosts']:
19 if not san
.endswith(host
):
22 return thismethod
== method
24 if '*' in authmethods
[method
]['hosts']: