Skip to content

Commit

Permalink
Fix piping 'cosign verify' using fulcio/rekor (sigstore#1590)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Franssen <[email protected]>
  • Loading branch information
marcofranssen authored and mlieberman85 committed May 6, 2022
1 parent ea944b5 commit 4e978c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cosign/cli/verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ func PrintVerification(imgRef string, verified []oci.Signature, output string) {
case "text":
for _, sig := range verified {
if cert, err := sig.Cert(); err == nil && cert != nil {
fmt.Println("Certificate subject: ", sigs.CertSubject(cert))
fmt.Fprintln(os.Stderr, "Certificate subject: ", sigs.CertSubject(cert))
if issuerURL := sigs.CertIssuerExtension(cert); issuerURL != "" {
fmt.Println("Certificate issuer URL: ", issuerURL)
fmt.Fprintln(os.Stderr, "Certificate issuer URL: ", issuerURL)
}
}

Expand Down

0 comments on commit 4e978c3

Please sign in to comment.