Skip to content

Commit cb2fcf3

Browse files
committed
feat: show certificate serial number in agent inspect output
Enables correlating inspect output with CA issuance logs, which log the serial as the primary certificate identifier.
1 parent b9e0ab4 commit cb2fcf3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/epithet/inspect.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ func printCertInfoProto(idx int, certInfo *pb.CertInfo, now time.Time) {
211211
fingerprint := "SHA256:" + base64.RawStdEncoding.EncodeToString(hash[:])
212212
fmt.Printf(" Fingerprint: %s\n", fingerprint)
213213

214+
// Serial number (correlates with CA issuance log).
215+
fmt.Printf(" Serial: %d\n", cert.Serial)
216+
214217
// Identity (KeyId).
215218
fmt.Printf(" Identity: %s\n", cert.KeyId)
216219

0 commit comments

Comments
 (0)