Skip to content

Commit

Permalink
update timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Jun 25, 2024
1 parent 3ad1246 commit ac78ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,11 @@ func verifyAuthenticTimestamp(ctx context.Context, trustPolicy *trustpolicy.Trus
}
}
logger.Info("TSA identity is: ", tsaCertChain[0].Subject)
timeStampLowerLimit = ts.Add(-accuracy)
timeStampUpperLimit = ts.Add(accuracy)
// 4. Perform the timestamping certificate chain revocation check
if !trustPolicy.SignatureVerification.SkipTimestampRevocationCheck {
logger.Info("Checking timestamping certificate chain revocation...")
timeStampLowerLimit = ts.Add(-accuracy)
timeStampUpperLimit = ts.Add(accuracy)
certResults, err := revocation.ValidateTimestampCertChain(tsaCertChain, timeStampUpperLimit, &http.Client{Timeout: 5 * time.Second})
if err != nil {
return &notation.ValidationResult{
Expand Down

0 comments on commit ac78ce1

Please sign in to comment.