Skip to content

Commit

Permalink
Include SCT verification failure details in error message (#3799)
Browse files Browse the repository at this point in the history
Signed-off-by: Slavek Kabrda <[email protected]>
  • Loading branch information
bkabrda authored Jul 26, 2024
1 parent c6cdf1b commit 62a2cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cosign/verify_sct.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func VerifySCT(_ context.Context, certPEM, chainPEM, rawSCT []byte, pubKeys *Tru
}
err = ctutil.VerifySCT(pubKeyMetadata.PubKey, []*ctx509.Certificate{cert, certChain[0]}, sct, true)
if err != nil {
return fmt.Errorf("error verifying embedded SCT")
return fmt.Errorf("error verifying embedded SCT: %w", err)
}
if pubKeyMetadata.Status != tuf.Active {
fmt.Fprintf(os.Stderr, "**Info** Successfully verified embedded SCT using an expired verification key\n")
Expand Down

0 comments on commit 62a2cff

Please sign in to comment.