[gnutls-devel] tests/cert-tests/template-test is timezone sensitive

Alon Bar-Lev alon.barlev at gmail.com
Sat Jun 20 20:08:12 CEST 2015


On 17 June 2015 at 18:58, Alon Bar-Lev <alon.barlev at gmail.com> wrote:
>
> On 17 June 2015 at 18:19, Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:
> > On Wed, Jun 17, 2015 at 1:11 PM, Alon Bar-Lev <alon.barlev at gmail.com> wrote:
> >> Sorry, was cut in the middle.
> >> See:
> >> $ TZ=GMT+2 datefudge "2015-01-01" date -u
> >> Thu Jan  1 02:00:00 UTC 2015
> >> $ TZ=GMT+0 datefudge "2015-01-01" date -u
> >> Thu Jan  1 00:00:00 UTC 2015
> >> Probably issue of datefudge of using localtime... The test should
> >> enforce a specific TZ, currently it is UTC-2.
> >> However, even if done so, the certificates are generated with
> >> different signature.
> >
> > Which test fails?
>
> tests/cert-tests/template-test


This applies to any datefudge test:

tests/cert-tests/template-test
tests/pkcs1-padding/pkcs1-pad
tests/suite/testcompat-openssl
tests/suite/testcompat-polarssl

All required TZ=GMT-2 to use sane timestamps.



More information about the Gnutls-devel mailing list