=== modified file 'mandos' --- mandos 2023-02-08 00:05:18 +0000 +++ mandos 2024-09-08 02:18:57 +0000 @@ -961,8 +961,14 @@ # key_id() and fingerprint() functions client["key_id"] = (section.get("key_id", "").upper() .replace(" ", "")) - client["fingerprint"] = (section["fingerprint"].upper() + client["fingerprint"] = (section.get("fingerprint", + "").upper() .replace(" ", "")) + if not (client["key_id"] or client["fingerprint"]): + log.error("Skipping client %s without key_id or" + " fingerprint", client_name) + del settings[client_name] + continue if "secret" in section: client["secret"] = codecs.decode(section["secret"] .encode("utf-8"),