Add a count for the number of SANs

This commit is contained in:
Scott Wallace 2024-08-23 13:12:55 +01:00
parent fa428fa26c
commit a46395c478
Signed by: scott
SSH key fingerprint: SHA256:+LJug6Dj01Jdg86CILGng9r0lJseUrpI0xfRqdW9Uws

View file

@ -139,7 +139,7 @@ if __name__ == "__main__":
table = [
["Common name", cert.subject.rfc4514_string()],
["SANs", tabulate(sangroups, tablefmt="plain")],
[f"SANs ({len(sans)})", tabulate(sangroups, tablefmt="plain")],
["Valid from", cert.not_valid_before_utc],
["Valid to", cert.not_valid_after_utc],
["Issuer", cert.issuer.rfc4514_string()],