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

Alon Bar-Lev alon.barlev at gmail.com
Wed Jun 17 13:11:00 CEST 2015


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.

Example for test1:

$ TZ=UTC-2 ./template-test
--- /tmp/a1     2015-06-17 13:03:31.760671982 +0200
+++ /tmp/a2     2015-06-17 13:03:31.764672014 +0200
@@ -41,11 +41,11 @@ Certificate:
                   URI:http://www.getcrl.crl/getcrl3/

     Signature Algorithm: sha256WithRSAEncryption
-         86:0e:71:aa:ec:de:31:5d:55:53:6d:39:0a:ea:c0:0b:f2:40:
-         f5:61:b3:d4:b3:63:d2:a8:c6:01:aa:80:9f:db:eb:3b:a9:7a:
-         4c:dd:76:6b:51:4d:af:ef:f5:9d:72:3d:14:a3:0b:da:66:3e:
-         e7:33:90:56:96:01:c9:10:6c:2f:55:33:10:69:1b:3e:8f:28:
-         b5:5f:20:aa:e7:aa:5a:7e:f3:21:e0:42:60:d5:c3:06:4f:85:
-         20:7b:90:db:f5:89:a3:4f:63:55:b6:3d:50:16:fa:e1:7b:3b:
-         e6:6f:1f:39:45:b5:4e:43:ca:8e:b0:14:5b:ad:f1:d8:59:da:
-         82:2a
+         58:13:fc:9f:cb:7d:2f:ad:2f:fd:f6:37:fd:ed:32:36:7a:22:
+         cf:f5:60:b5:3b:63:1c:88:d1:3e:c1:9c:af:30:fb:1e:08:5a:
+         c6:5d:8f:8d:9f:fc:27:e4:38:7a:7f:c1:20:c7:fb:0f:d4:7a:
+         45:20:c8:8b:c3:fc:83:60:18:10:3b:e9:6f:a3:4a:eb:50:90:
+         6c:db:7b:86:e9:52:94:c4:03:33:d0:29:67:78:c6:77:e1:0e:
+         ed:9c:1f:02:76:42:fe:5f:22:48:13:ee:6f:72:df:c3:0b:8f:
+         ec:e4:24:75:16:c6:eb:c1:07:d5:ee:ed:c7:4d:ea:d5:e1:6e:
+         55:9f

I am unsure what was the exact intention.

Regards,
Alon



More information about the Gnutls-devel mailing list