From 464b3d6877106c92dbae5611108a232703107fd9 Mon Sep 17 00:00:00 2001 From: Jasmine Schladen Date: Wed, 18 Sep 2024 10:07:27 -0700 Subject: [PATCH] Remove serial from log --- lemur/certificates/cli.py | 4 +--- lemur/certificates/service.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lemur/certificates/cli.py b/lemur/certificates/cli.py index 7c7d582b9..f4e317d1b 100644 --- a/lemur/certificates/cli.py +++ b/lemur/certificates/cli.py @@ -67,8 +67,7 @@ def print_certificate_details(details): "\t[+] Subject Alternate Names: {sans}\n" "\t[+] Authority: {authority_name}\n" "\t[+] Validity Start: {validity_start}\n" - "\t[+] Validity End: {validity_end}\n" - "\t[+] Serial Number:{serial_number}".format( + "\t[+] Validity End: {validity_end}\n".format( common_name=details["commonName"], sans=",".join( x["value"] for x in details["extensions"]["subAltNames"]["names"] @@ -77,7 +76,6 @@ def print_certificate_details(details): authority_name=details["authority"]["name"], validity_start=details["validityStart"], validity_end=details["validityEnd"], - serial_number=details["serial"] ) ) diff --git a/lemur/certificates/service.py b/lemur/certificates/service.py index f7ee837bb..27c8e2692 100644 --- a/lemur/certificates/service.py +++ b/lemur/certificates/service.py @@ -957,7 +957,6 @@ def get_certificate_primitives(certificate): data["validity_start"] = start data["validity_end"] = end - data["serial"] = certificate.serial return data