stashing certlib work

This commit is contained in:
2025-04-10 01:16:01 -07:00
parent c761d98b82
commit e0edf35c53
3 changed files with 112 additions and 0 deletions

View File

@@ -214,6 +214,17 @@ func displayCert(cert *x509.Certificate) {
wrapPrint(fmt.Sprintf("- %s\n", ocspServer), 2)
}
}
fmt.Println("SCTs:")
sctList, err := certlib.DumpSignedCertificateList(cert)
if err != nil {
lib.Warn(err, "failed to dump signed certificate list")
} else {
for _, sct := range sctList {
fmt.Printf("\t- %s\n", sct)
}
}
}
func displayAllCerts(in []byte, leafOnly bool) {