From e00757c13f2bad431f50e8914fd5b2ca1f01d4a0 Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Sat, 16 Nov 2024 07:51:41 -0600 Subject: [PATCH] Add Certificate Signature Algorithm to output List alongside cert status and expiration details. refs GH-1037 --- internal/certs/certs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/certs/certs.go b/internal/certs/certs.go index 5e988485..6d1d5921 100644 --- a/internal/certs/certs.go +++ b/internal/certs/certs.go @@ -1545,6 +1545,7 @@ func GenerateCertChainReport( "%s\tSerial: %v"+ "%s\tIssued On: %s"+ "%s\tExpiration: %s"+ + "%s\tSignature Algorithm: %s"+ "%s\tStatus: %s%s%s", idx+1, certsTotal, @@ -1572,6 +1573,8 @@ func GenerateCertChainReport( nagios.CheckOutputEOL, certificate.NotAfter.Format(CertValidityDateLayout), nagios.CheckOutputEOL, + certificate.SignatureAlgorithm.String(), + nagios.CheckOutputEOL, expiresText, nagios.CheckOutputEOL, nagios.CheckOutputEOL, @@ -1585,6 +1588,7 @@ func GenerateCertChainReport( "%s\tSerial: %v"+ "%s\tIssued On: %s"+ "%s\tExpiration: %s"+ + "%s\tSignature Algorithm: %s"+ "%s\tStatus: %s%s%s", idx+1, certsTotal, @@ -1602,6 +1606,8 @@ func GenerateCertChainReport( nagios.CheckOutputEOL, certificate.NotAfter.Format(CertValidityDateLayout), nagios.CheckOutputEOL, + certificate.SignatureAlgorithm.String(), + nagios.CheckOutputEOL, expiresText, nagios.CheckOutputEOL, nagios.CheckOutputEOL,