Fixes to the documentation. Added missing --revoked logic for the list command.
Some checks failed
Release / release (push) Failing after 53s

This commit is contained in:
2025-12-10 21:33:23 +01:00
parent 714a38d612
commit affa895cfe
3 changed files with 20 additions and 12 deletions

View File

@@ -71,10 +71,13 @@ func main() {
os.Exit(1)
}
for _, certDef := range caState.Certificates {
if certDef.RevokedAt != "" {
if certDef.RevokedAt != "" && !listRevoked {
continue
}
fmt.Printf("Certificate %s\n", certDef.Name)
if certDef.RevokedAt != "" {
fmt.Printf("\tStatus: REVOKED (at %s)\n", certDef.RevokedAt)
}
fmt.Printf("\tSubject: %s\n\tType: %s\n\tIssued at: %s\n",
certDef.Subject, certDef.Type, certDef.Issued)
}