Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esignet-service/internal/keymanager/rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func expiryFor(genTime time.Time, policy db.KeyPolicy) time.Time {
// preExpireDays before its hard expiry, so a replacement starts being
// generated ahead of the actual cutoff.
func isCurrent(now, genTime, expiryTime time.Time, preExpireDays int) bool {
return now.After(genTime) && now.Before(expiryTime.AddDate(0, 0, -preExpireDays))
return !now.Before(genTime) && now.Before(expiryTime.AddDate(0, 0, -preExpireDays))
}

// uniqueIdentifier computes key_alias.uni_ident exactly as
Expand Down
Loading