Skip to content

Commit

Permalink
Add Certificate Signature Algorithm to output
Browse files Browse the repository at this point in the history
List alongside cert status and expiration details.

refs GH-1037
  • Loading branch information
atc0005 committed Nov 16, 2024
1 parent f08ccc8 commit e00757c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/certs/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1572,6 +1573,8 @@ func GenerateCertChainReport(
nagios.CheckOutputEOL,
certificate.NotAfter.Format(CertValidityDateLayout),
nagios.CheckOutputEOL,
certificate.SignatureAlgorithm.String(),
nagios.CheckOutputEOL,
expiresText,
nagios.CheckOutputEOL,
nagios.CheckOutputEOL,
Expand All @@ -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,
Expand All @@ -1602,6 +1606,8 @@ func GenerateCertChainReport(
nagios.CheckOutputEOL,
certificate.NotAfter.Format(CertValidityDateLayout),
nagios.CheckOutputEOL,
certificate.SignatureAlgorithm.String(),
nagios.CheckOutputEOL,
expiresText,
nagios.CheckOutputEOL,
nagios.CheckOutputEOL,
Expand Down

0 comments on commit e00757c

Please sign in to comment.