diff --git a/extractor.py b/extractor.py index 0b69194..59ba8e1 100644 --- a/extractor.py +++ b/extractor.py @@ -42,7 +42,7 @@ class Handler(FileSystemEventHandler): name = c['Domain']['Main'] privatekey = c['Key'] fullchain = c['Certificate'] - sans = c['Domains']['SANs'] + sans = c['Domain']['SANs'] # Decode private key, certificate and chain privatekey = b64decode(privatekey).decode('utf-8')