Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Certificate Signature Algorithm to output #1055

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading