diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-01-21 08:18:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-01-21 08:18:42 +0100 |
commit | 3fb5a9950f94ca54822f029acc5ff5dbb08c2ed7 (patch) | |
tree | fd3af13a6c9c8f7c7b4d0c61bc9cd64b96d23966 | |
parent | c0217bb27ad5951b1c5c165f2af2967f83cb9679 (diff) | |
download | curl-bagder/cabundle-distrust-after.tar.gz |
fixup warn if the distrust efter time doesn't end with 'Z'bagder/cabundle-distrust-after
-rwxr-xr-x | lib/mk-ca-bundle.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mk-ca-bundle.pl b/lib/mk-ca-bundle.pl index 4833a54f6..09e8e5b9b 100755 --- a/lib/mk-ca-bundle.pl +++ b/lib/mk-ca-bundle.pl @@ -464,8 +464,12 @@ while (<TXT>) { push @timestamp, chr(oct); } } + # A trailing Z in the timestamp signifies UTC + if($timestamp[12] ne "Z") { + report "distrust date stamp is not using UTC"; + } # Example date: 200617000000Z - # Means 2020-06-17 00:00:00Z + # Means 2020-06-17 00:00:00 UTC my $distrustat = timegm($timestamp[10] . $timestamp[11], # second $timestamp[8] . $timestamp[9], # minute |