smimesign icon indicating copy to clipboard operation
smimesign copied to clipboard

Make TSA timestamp checks inclusive.

Open wlynch opened this issue 3 years ago • 0 comments

time.Before/After checks are exclusive, but these checks should be inclusive.

From https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.5:

The validity period for a certificate is the period of time from notBefore through notAfter, inclusive.

(doc whitespace changes are coming from Go 1.19 gofmt)

Signed-off-by: Billy Lynch [email protected]

wlynch avatar Nov 10 '22 23:11 wlynch