From a46395c47894b33c87537ccac0e4ee7f2d30ace3 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 23 Aug 2024 13:12:55 +0100 Subject: [PATCH] Add a count for the number of SANs --- cert_deets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cert_deets.py b/cert_deets.py index 0112087..0a96e95 100644 --- a/cert_deets.py +++ b/cert_deets.py @@ -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()],