Fixes to the documentation. Added missing --revoked logic for the list command.
Some checks failed
Release / release (push) Failing after 53s
Some checks failed
Release / release (push) Failing after 53s
This commit is contained in:
5
main.go
5
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user